GithubHelp home page GithubHelp logo

makeclan / mmgoogleplaynewsstand Goto Github PK

View Code? Open in Web Editor NEW

This project forked from mukyasa/mmgoogleplaynewsstand

0.0 2.0 0.0 19.66 MB

To Simulate iOS Google Play NewsStand app

License: Other

Swift 34.08% Objective-C 65.92%

mmgoogleplaynewsstand's Introduction

MMGooglePlayNewsStand

To Simulate iOS Google Play NewsStand app

####Objective-C Version released

So Finally i was able to 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 to use an integrate it in your project.If you look in to project i have made Objective code much cleaner and easy to use compare to Swift.Future work will be making the swift code more simple and cleaner.I will suggest to 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 to use it both in Objective-C/Swift.

####Appstore Link of Google Play Newsstand app https://itunes.apple.com/in/app/google-play-newsstand/id459182288?mt=8

Video preview Here

##Demo

MMGooglePlayNewsStand

##Files Required MMContainerViewController

MMMenuScroll

BaseViewController

UIView+MaterialDesign

UIColor+HexRepresentation

JBKenBurnsView

##Example Usage Objective-C Project

//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 Usage Swift Project with same mechanism

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

My Other Repositories

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

Contact Me

Mukesh Mandora

Contact: [email protected]

Twitter: http://twitter.com/mandymuku

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

Github:https://github.com/mukyasa

License

MMGooglePlayNewsStand is available under the Apache license. See the LICENSE file for more info.

mmgoogleplaynewsstand's People

Contributors

mukyasa avatar

Watchers

James Cloos avatar 何事惊慌 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.