The goal of this assignment is to remake the UI from the official Twitter app profile screen.
Image references:
https://github.com/accesscode-2-2/unit-1-hw-week-0/blob/master/images/IMG_3080.PNG?raw=true
https://github.com/accesscode-2-2/unit-1-hw-week-0/blob/master/images/IMG_3082.PNG?raw=true
- Incorporate ALL UI elements (if you see it in the reference image I should see it in your assignment)
- You must use images (repo has an assets folder with images for you to use). Here's a video on how to add images to your project
HINT:
Any setup code you need to write can be written in the supplied viewDidLoad:
method in the ViewController
class.
Bonus
- Hook up the segmented control to your controller. When the user selected different segments, update the label below to reflect the change
- Have the "follow" button toggle between "follow" and "following" when tapped
- Use a profile/cover image from the web with the NSURL class.
UISegmentedControl:
https://developer.apple.com/library/ios/documentation/UIKit/Reference/UISegmentedControl_Class/
UIImageView:
https://developer.apple.com/library/ios/documentation/UIKit/Reference/UIImageView_Class/
NSAttributedString: (optional for "following"/"followers") https://developer.apple.com/library/prerelease/ios/documentation/Cocoa/Reference/Foundation/Classes/NSAttributedString_Class/index.html
QuartzCore: (borders and rounded corners)
https://developer.apple.com/library/prerelease/ios/documentation/GraphicsImaging/Reference/QuartzCoreRefCollection/index.html
https://developer.apple.com/library/ios/documentation/GraphicsImaging/Reference/CALayer_class/
http://www.raywenderlich.com/90488/calayer-in-ios-with-swift-10-examples