Please do not post the same thing multiple times. The board software automatically flags certain posts as needing moderator attention. This happens the most often for new users. I'm pretty sure this is made clear at the time you attempt to post. Posting the same thing over and over again just makes that many more posts the moderators have to weed through later. This makes us sad. Don't make us sad. If your post/thread doesn't appear, just wait a while. Don't post it again. If it hasn't shown up by the next day, then you can try again. I normally go through posts in the mornings, and try to check a few times throughout the day, but I'm not here 24/7. There will typically be a significant delay before posts are approved. Just be patient.
Apparently the width and height reported by UIScreen bounds don't change when the device rotates so if your app can work rotated you may need to consider that.
Hi, you may also want to verify that the screen dimensions take the staus bar into account (20 pixels). What i usually so is just store the dimensions manually...320 x 460 portrait and 480x300 in landscape. the nice thing about developing on iphone is that theres only one screen size. completely different story when developing apps for multiple devices :)
Hi, you may also want to verify that the screen dimensions take the staus bar into account (20 pixels). What i usually so is just store the dimensions manually...320 x 460 portrait and 480x300 in landscape. the nice thing about developing on iphone is that theres only one screen size. completely different story when developing apps for multiple devices :)
I have done the same thing in a few apps, but I just know Apple's going to break that someday by bringing out a different sized or higher resolution device :D
ChronoSoft - Rogue Touch Available now in the App Store! ... Version 1.5 available n
There are two properties in UIScreen that can be used here. No hard coding required.
One gives the actual, physical screen size and the other gives the size used by your application - taking into account the status bar, if shown. Use the right method and get the right answer. Then you'll be one of the few apps that will work when the next device comes out ;)
Apparently the width and height reported by UIScreen bounds don't change when the device rotates so if your app can work rotated you may need to consider that.
it is ok when in portrait, but I rotate to landscape, the textfield is not fit with the width of the screen , and the y position is not changing accordingly.
Is there any way to solve the bounds issue when device rotates..
You need to read the docs on this as it can be confusing. I find myself reading them every month or so to refresh my understanding. I think there's also a section on this in the IB manual, maybe referring to springs and struts.
much thanks for the info. (at first I searched that property for UITetField in Xcode documentation.I didn't find. Now understands it is inherited from UIView property right.)
hope that I am not disturbing you.. let me know one more thing, how can I auto adjust y value.. suppose I want to keep the y position as screenheight/2.0 , but it not works when rotate..
/* for documentation we are using in Xcode menu, Help->Documentation please inform any other docs or tutorial with samples*/
To keep the view in the middle heightwise you need to set flexible top and bottom margin. I really suggest you look at the little animation in IB. It shows in a graphic way the effect of setting the various constants.
Replies
Simply use:
- Spam
- Abuse
- Troll
0 · Off Topic Insightful Disagree Dislike Like Awesomecheers !!
The Lord's holy name be praised.
- Spam
- Abuse
- Troll
0 · Off Topic Insightful Disagree Dislike Like Awesome- Spam
- Abuse
- Troll
0 · Off Topic Insightful Disagree Dislike Like Awesome- Spam
- Abuse
- Troll
0 · Off Topic Insightful Disagree Dislike Like Awesome- Spam
- Abuse
- Troll
0 · Off Topic Insightful Disagree Dislike Like Awesome- Spam
- Abuse
- Troll
0 · Off Topic Insightful Disagree Dislike Like AwesomeOne gives the actual, physical screen size and the other gives the size used by your application - taking into account the status bar, if shown. Use the right method and get the right answer. Then you'll be one of the few apps that will work when the next device comes out ;)
- Spam
- Abuse
- Troll
0 · Off Topic Insightful Disagree Dislike Like Awesomeit is ok when in portrait, but I rotate to landscape, the textfield is not fit with the width of the screen , and the y position is not changing accordingly.
Is there any way to solve the bounds issue when device rotates..
The Lord's holy name be praised.
- Spam
- Abuse
- Troll
0 · Off Topic Insightful Disagree Dislike Like Awesome- Spam
- Abuse
- Troll
0 · Off Topic Insightful Disagree Dislike Like Awesomethanks in advance
The Lord's holy name be praised.
- Spam
- Abuse
- Troll
0 · Off Topic Insightful Disagree Dislike Like AwesomeYou need to read the docs on this as it can be confusing. I find myself reading them every month or so to refresh my understanding. I think there's also a section on this in the IB manual, maybe referring to springs and struts.
- Spam
- Abuse
- Troll
0 · Off Topic Insightful Disagree Dislike Like Awesome(at first I searched that property for UITetField in Xcode documentation.I didn't find. Now understands it is inherited from UIView property right.)
hope that I am not disturbing you..
let me know one more thing, how can I auto adjust y value..
suppose I want to keep the y position as screenheight/2.0 , but it not works when rotate..
/* for documentation we are using in Xcode menu, Help->Documentation
please inform any other docs or tutorial with samples*/
The Lord's holy name be praised.
- Spam
- Abuse
- Troll
0 · Off Topic Insightful Disagree Dislike Like Awesome- Spam
- Abuse
- Troll
0 · Off Topic Insightful Disagree Dislike Like Awesome//I need to do all programmatically. not with IB
thanks for the help.
cheers !!
The Lord's holy name be praised.
- Spam
- Abuse
- Troll
0 · Off Topic Insightful Disagree Dislike Like Awesome