I'm trying to set a constant between iPhone (4,5,6...) and iPad, but I can't do a difference between iPhone 4 and iPhone 6 for example, so how to do ?
相关问题
- 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
- SwiftUI: UIImage (QRCode) does not load after call
相关文章
- 现在使用swift开发ios应用好还是swift?
- UITableView dragging distance with UIRefreshContro
- Using if let syntax in switch statement
- TCC __TCCAccessRequest_block_invoke
- Where does a host app handle NSExtensionContext#co
- Enum with associated value conforming to CaseItera
- Swift - hide pickerView after value selected
- Is there a Github markdown language identifier for
this question has a script that i use for this purpose
Detect current device with UI_USER_INTERFACE_IDIOM() in Swift
use it, and define constraints constant according to the device, and that's it. :)