Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 5 years ago.
Improve this question
My app has so far just been a portrait-based application. However, I am adding landscape mode to a new version, but have found that my XIB files look shocking when rotated from portrait to landscape. Apparently I need to make a landscape version of each XIB and use some code to change with XIB launches based on what rotation occurs. Am I right? If so, where do I go from here? Are there any Apple sample apps utilising this code?
FYI - My XIB files just have text in them.
Thanks.
If you have a complex view, the automatic resizing may not work well enough. If so, your best bet is to have separate views loaded from separate nibs for each orientation.
To set this up, see here: Easiest way to support multiple orientations? How do I load a custom NIB when the application is in Landscape?
Related
Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 8 years ago.
Improve this question
I want to add an online/offline indicator control to my ios app. I need to be able to programmatically set the status to offline (red) or online (green). Will NSLevelIndicator support this usecase? Or should I go with a label. This seems like an easy enough ask, but could not find anything.
Try to place a UILabel or UIImageView within your app's layout (e.g. in your navigation bar, if your app has one).
Just as a side note: Don't aim for the status bar (if you meant the signal indicator). It's a mess to handle icon placement in respect to device orientation and other possible displayed icons. Besides this, there's a risk your app is being rejected by Apple, if you manipulate the status bar.
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions concerning problems with code you've written must describe the specific problem — and include valid code to reproduce it — in the question itself. See SSCCE.org for guidance.
Closed 9 years ago.
Improve this question
After upgrading to Xcode 5, after compiling and executing an application, the screen appears dimmed and doesn't react to tap and pan gestures, both on a real device and simulator. Other similar apps compile and execute fine on iPhone. Anyway, it is not completely blocked. It's still responsive to Game Center, iCloud and rotation events. Strangely, it works fine on iPad.
Deployment target is set to 6.1.
Any hint?
I must apologize!
I've found the answer. Trying to figure out what could I had done wrong I realized that I had been trying changes on background color and alpha values of the main view and I did forget to leave them as they were before at IB. So, on changing alpha value of the main view, all its subviews appeared dimmed.
Responsiveness was restored by checking again "User Interaction Enabled" box. Don't ask me how could I uncheck it inadvertently.
Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 8 years ago.
Improve this question
Please be very clear with your instructions as I have little experience with working with xcode and making apps in it. Here I am simply trying to make a old iphone app fit the 4-inch screen. I have already made all views into an autolayout and the view you can barely see already works. However, the UIImageView (as you can see below) does not scale to the entire screen like I would like. Thanks!
If you want you can read up Ray's tutorial. It shows exactly how to do this. You will need to click the sideways I/ the H at the bottom and click either: Leading Space to Superview or Trailing Space to: Superview. Or at the right side of your image, you need to delete the Leading Space... or the Trailing Space... click the little cog drop down menu and delete one and test it, make sure you are in the small 3.5 inch view then test it.
Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 10 years ago.
Improve this question
I have a presentation where I'd like to demo my application. I'm using AirServer to mirror my iPod to my mac which I will connect to the projector.
Android has an developer option of showing a circle when you touch the screen so the audience can see where the presenter is touching the screen. Is there a way to do the same on an iPod touch?
It may not be the best solution but you could create an image that you fade in that would put a semi-opaque covering over the screen with the exception of your desired touch/focal point.
Setting touchedEnabled to NO on the image would still allow you or a user to click the button, at which point you could check if the image is shown, if it is, fade it back out and continue your presentation
*If this is a feature you wanted to keep in your app i'd suggest setting an NSUserDefault value to mark a value that it has or has not been shown. Once a user sees the guided access, set that value to true and don't show again.
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 8 years ago.
Improve this question
I just recently read that full screen iAd only works on iPad. Do you think it is possbile to show a
full screen iad banner before user to click it on iphone?
Full screen iAd are ADInterstitialAd available only since iOS 4.3 and for iPad ONLY.
Hope this helps
I just implemented iad and it seems that they only have landscape and portrait ad banners. But the Ad is Full screen. Once they click on it. It takes over the application and lets you know to pause.
Then lets you know when it is done so you can resume whatever. But again the Ad Banners are only Landscape or Portrait.
Full Screen ipad iad's are listed in the Programming guide .
iAd Programming Guide
Doing a tutorial will get the implementation out pretty fast. But you should go over the manual as well.