Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- override func viewDidLoad() {
- super.viewDidLoad()
- displaySize = self.view.frame.size
- if displaySize.height == 480 { //4/4S
- print("this is iPhone4/4s")
- //Do Nothing. This is base size
- }
- else if displaySize.height == 568{ //5/5S
- //保存ボタンを下にずらす
- print("this is iPhone5/5s")
- button_Save.frame.origin.y += 100
- }
- (以下略)
- }
- override func viewDidLayoutSubviews() {
- super.viewDidLayoutSubviews()
- displaySize = self.view.frame.size
- if displaySize.height == 480 { //4/4S
- print("this is iPhone4/4s")
- //Do Nothing. This is base size
- }
- else if displaySize.height == 568{ //5/5S
- //保存ボタンを下にずらす
- print("this is iPhone5/5s")
- button_Save.frame.origin.y += 100
- }
- (以下略)
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement