Is there any good tutorial that shows how to create a UI like the one on iPhone's calculator? It looks to me that it has two different views in the same initial ViewController and they change according to the orientation of the iPhone.
相关问题
- Core Data lightweight migration crashes after App
- How can I implement password recovery in an iPhone
- State preservation and restoration strategies with
- “Zero out” sensitive String data in Swift
- Get the NSRange for the visible text after scroll
相关文章
- 现在使用swift开发ios应用好还是swift?
- UITableView dragging distance with UIRefreshContro
- TCC __TCCAccessRequest_block_invoke
- Where does a host app handle NSExtensionContext#co
- Swift - hide pickerView after value selected
- How do you detect key up / key down events from a
- didBeginContact:(SKPhysicsContact *)contact not in
- Attempt to present UIAlertController on View Contr
You should be familiar with autolayout and size classes. This is good tutorial https://makeapppie.com/2016/09/05/an-introduction-to-size-classes-for-xcode-8/
I created a project and publish it on GitHub for everyone wants to create a UI that responds exactly like the default iPhone calculator. The link for the project is https://github.com/FotiosTragopoulos/OrientationUI
As dfd said in comment, you should watch WWDC presentation https://developer.apple.com/videos/play/wwdc2016/222/. After that you can check that topic: https://stackoverflow.com/a/10533561/1189244