帮酷LOGO
0 0 评论
文章标签:NEWS  Simulate  Google Play  play  
To Simulate iOS Google Play NewsStand app

  • 源代码名称:MMGooglePlayNewsStand
  • 源代码网址:http://www.github.com/mukyasa/MMGooglePlayNewsStand
  • MMGooglePlayNewsStand源代码文档
  • MMGooglePlayNewsStand源代码下载
  • Git URL:
    git://www.github.com/mukyasa/MMGooglePlayNewsStand.git
  • Git Clone代码到本地:
    git clone http://www.github.com/mukyasa/MMGooglePlayNewsStand
  • Subversion代码到本地:
    $ svn co --depth empty http://www.github.com/mukyasa/MMGooglePlayNewsStand
    Checked out revision 1.
    $ cd repo
    $ svn up trunk
    
  • MMGooglePlayNewsStand

    模拟 iOS Google Play NewsStand应用

    Swift 示例和pods集成正在进行中

    Objective-C Version released so Finally i was able make Objective-C version of this, sorry for Delay my Friends, got lot of request for this so thought of doing this for my community friends.Feel free use an integrate it in your project.If you look in project i have made Objective code much cleaner and easy use compare Swift.Future work will be making the swift code more simple and cleaner.I will suggest use the ObjCPlayStand in your project because swift code is not a plug and play type, but with help of Bridging header you can use it easily.Check for demo how use it both in Objective-C/swift.

    Google Play Newsstand应用 https://itunes.apple.com/in/app/google-play-newsstand/id459182288?mt=8的####Appstore 链接。

    视频预览在这里

    ##Demo

    MMGooglePlayNewsStand

    ##Files 需要 MMContainerViewController

    MMMenuScroll

    BaseViewController

    UIView+MaterialDesign

    UIColor+HexRepresentation

    JBKenBurnsView

    ##Example 用法 objective-c 项目

    
    //In view did load init the view controllers
    
    
     MMTableViewController *vc_one = [self.storyboard instantiateViewControllerWithIdentifier:@"demo"];
    
    
     vc_one.title = @"Highlights";
    
    
     vc_one.logoColor = @"4caf50";
    
    
     vc_one.logoImage = @"highlights";
    
    
    
     MMTableViewController *vc_two = [self.storyboard instantiateViewControllerWithIdentifier:@"demo"];
    
    
     vc_two.title = @"Sports";
    
    
     vc_two.logoColor = @"009688";
    
    
     vc_two.logoImage = @"sports";
    
    
    
     MMTableViewController *vc_three = [self.storyboard instantiateViewControllerWithIdentifier:@"demo"];
    
    
     vc_three.title = @"Entertainment";
    
    
     vc_three.logoColor = @"673ab7";
    
    
     vc_three.logoImage = @"movie";
    
    
    
     MMTableViewController *vc_four = [self.storyboard instantiateViewControllerWithIdentifier:@"demo"];
    
    
     vc_four.title = @"News";
    
    
     vc_four.logoColor = @"ff9800";
    
    
     vc_four.logoImage = @"world";
    
    
    
     MMCollectionViewController *vc_five = [self.storyboard instantiateViewControllerWithIdentifier:@"collection"];
    
    
     vc_five.title = @"Technology";
    
    
     vc_five.logoColor = @"9c27b0";
    
    
     vc_five.logoImage = @"tech";
    
    
    
    //init the view container controller
    
    
     self.containerVC = [[MMContainerViewController alloc] initWithControllers:@[vc_one, vc_two, vc_three, vc_four,vc_five] parentViewController:self];
    
    
     vc_one.scrolldeleagte = self.containerVC ;
    
    
     vc_two.scrolldeleagte = self.containerVC ;
    
    
     vc_three.scrolldeleagte = self.containerVC ;
    
    
     vc_four.scrolldeleagte = self.containerVC ;
    
    
     vc_five.scrolldeleagte = self.containerVC ;
    
    
    
    //init the colors
    
    
     self.containerVC.itemViewColorArray = @[@"4caf50",@"009688",@"673ab7",@"ff9800",@"9c27b0"];
    
    
    
    //init the font
    
    
     self.containerVC.menuItemFont = [UIFont fontWithName:@"Roboto-Medium" size:15];
    
    
    //init the indicator color
    
    
     self.containerVC.menuIndicatorColor = [UIColor whiteColor];
    
    
    
    //init the images used in kensburn
    
    
     self.containerVC.images = @[[UIImage imageNamed:@"ironman.jpg"],[UIImage imageNamed:@"worldbg.jpg"],[UIImage imageNamed:@"sportsbg.jpg"],[UIImage imageNamed:@"applebg.png"],[UIImage imageNamed:@"businessbg.jpg"]];
    
    
    
     [self.view addSubview:self.containerVC.view];
    
    
    
    

    ##Example 使用 Swift 项目具有相同机制

    
    let vc_one = self.storyboard?.instantiateViewControllerWithIdentifier("demo") as? MMTableViewController
    
    
     vc_one!.title ="Highlights";
    
    
     vc_one!.logoColor ="4caf50";
    
    
     vc_one!.logoImage ="highlights";
    
    
    
     let vc_two = self.storyboard?.instantiateViewControllerWithIdentifier("demo") as? MMTableViewController
    
    
     vc_two!.title ="Sports";
    
    
     vc_two!.logoColor ="009688";
    
    
     vc_two!.logoImage ="sports";
    
    
    
     let vc_three = self.storyboard?.instantiateViewControllerWithIdentifier("demo") as? MMTableViewController
    
    
     vc_three!.title ="Entertainment";
    
    
     vc_three!.logoColor ="673ab7";
    
    
     vc_three!.logoImage ="movie";
    
    
    
     let vc_four = self.storyboard?.instantiateViewControllerWithIdentifier("demo") as? MMTableViewController
    
    
     vc_four!.title ="News";
    
    
     vc_four!.logoColor ="ff9800";
    
    
     vc_four!.logoImage ="world";
    
    
    
     let vc_five = self.storyboard?.instantiateViewControllerWithIdentifier("collection") as? MMCollectionViewController
    
    
     vc_five!.title ="Technology";
    
    
     vc_five!.logoColor ="9c27b0";
    
    
     vc_five!.logoImage ="tech";
    
    
    
     let containerVC = MMContainerViewController(controllers: [vc_one!, vc_two!, vc_three!, vc_four!,vc_five!], parentViewController: self)
    
    
     vc_one!.scrolldeleagte = containerVC ;
    
    
     vc_two!.scrolldeleagte = containerVC
    
    
     vc_three!.scrolldeleagte = containerVC
    
    
     vc_four!.scrolldeleagte = containerVC
    
    
     vc_five!.scrolldeleagte = containerVC
    
    
    
     containerVC.itemViewColorArray = ["4caf50","009688","673ab7","ff9800","9c27b0"];
    
    
     containerVC.menuItemFont = UIFont(name:"Roboto-Medium", size: 15)
    
    
     containerVC.menuIndicatorColor = UIColor.whiteColor()
    
    
     containerVC.images = [UIImage(named:"ironman.jpg")!,UIImage(named:"worldbg.jpg")!,UIImage(named:"sportsbg.jpg")!,UIImage(named:"applebg.png")!,UIImage(named:"businessbg.jpg")!]
    
    
    
     view.addSubview(containerVC.view);
    
    
    
    

    ####Credits

    我的其他仓库

    MMPaper:
    https://github.com/mukyasa/MMPaper

    MMCamScanner:
    https://github.com/mukyasa/MMCamScanner

    MMTextFieldEffects:
    https://github.com/mukyasa/MMTextFieldEffects

    MMPaperPanFlip:
    https://github.com/mukyasa/MMPaperPanFlip

    MMTransitionEffect:
    https://github.com/mukyasa/MMTransitionEffect

    联系我

    Mandora

    联系人:mandoramuku07@gmail.com

    Twitter: http://twitter.com/mandymuku

    LinkedIn: https://in.linkedin.com/in/mukeshmandora

    Github: https://github.com/mukyasa

    许可证

    MMGooglePlayNewsStand在Apache许可下可用。 有关详细信息,请参阅许可证文件。



    文章标签:play  NEWS  Google Play  Simulate  

    Copyright © 2011 HelpLib All rights reserved.    知识分享协议 京ICP备05059198号-3  |  如果智培  |  酷兔英语