tags | languages |
---|---|
Size_Classes, autolayout, views |
objc |
Horizontal Profile
Instructions
- When the phone is in portrait mode, make a new "profile page" that looks like this. Feel free to use your creative judgement on the actual proportions. Remember! Grid!
- When the phone goes horizontal, let's hide that cover image and just display everything else. Grid!
- If the phone is an iPhone 6 plus and goes horizontal, add that cover image back in and put the other information all below it with the Profile pic next to the name, interesting fact and class name and the textView with more details to the right of that. Something like this:
Hints
- Check out my blog for more on working with Size Classes in iOS
- You may have to remove constraints to get everything to work on landscape
- Listening to rotation events in iOS 8 is as easy as overriding the
-(void)willTransitionToTraitCollection:(UITraitCollection *)newCollection withTransitionCoordinator:(id<UIViewControllerTransitionCoordinator>)coordinator
method.