ios - Resizing for iPhone 4 from an iPhone 5 without using autolayout or making a new xib -


my app works iphone5 , 6, 6+, not iphone4 (not ipad, that's not necessary @ moment). wrote storyboard being dimensions of iphone 5 screen, that's problem arises. collision, pixels,outlines, etc have been fitted 5. scales correctly when going 6, when goes down 4, 20% of right side gets cut off. told use autolayout messes integrity of collision, because made without using (will used next app). while it's simple game, still take while redo , can't imagine same. there sort of reliable code can use "quick fix" resizes correctly 4 same relative dimensions?

i saw somewhere test bounds , have program scale screen accordingly, possible?

the best thing right take hit convert code not use hard coded numbers. said built work on 4" devices tells me did things x = 160; instead of x = view.bounds.width/2. need go through code , anywhere use hard coded number 160, consider code trying (160 vs center of screen).

you not need use auto layout accomplish want on different screen sizes need rid of hard coded numbers set.


Comments

Popular posts from this blog

python - TypeError: start must be a integer -

c# - DevExpress RepositoryItemComboBox BackColor property ignored -

django - Creating multiple model instances in DRF3 -