I have a popover in my app, a simple one with only a "textview" in it. I managed to make it transparent, that is, that only "thetext" shows, being totally transparent to the image below (image on view, not in the popover). Did this with this in viewDidAppear:
self.viewpoptexto.superview.superview.alpha = 0.9f;
The problem is, this works fine when i run the app in the simulator (IPAD, IPAD retina, IPAD retina 64bits), but running on the device, the popover shows a white background and stills get drawn.
XCODE 5 and IOS7.
Any help would be much appreciated, thanks.
You could try to set the popover background color to clearColor.
[popover setBackgroundColor:[UIColor clearColor]]
Related
I'm having a problem with UIToolbar and UIImageView widgets. After setting them in IB and writing code for their respective events and functionalities, when i run the app in the simulator (set to 3.5" screen device) or on my 3.5" iPod touch, they don't show up at all. Then i repositioned the toolbar view slightly above and reconfigured the simulator to run as 4" screen device. It was working perfectly fine. Both the views (image view as well as toolbar at the bottom were showing up). I set the simulator back again as 3.5" device then. Again the views aren't appearing..Nether on the actual device (3.5" screen iPod touch) nor on the simulator.. Whats happening??? This is so strange.. Anybody knows how to fix this???
We are started to convert our iOS 6 application into iOS 7. I tried to create one screen for my application. I used Xib file for design, I designed the screen from top to bottom with UILabel and UIButtons. When I tried to run the app in Simulator it showing differently from xib design. In simulator the designs are came down and bottom UILabel has hide.
I got the self.view.frame from viewDidLoad() was (0,64,32,504). But, it is showing correctly in viewDidAppear (0,0,320,568).
How can I resolve this issue in Xcode 5? Could you please help me to solve this.Looking forward your reply. Thanks.
You cannot depend on the frame in -viewDidLoad, because it hasn't been resized for the device at that point. You need to wait for -viewDidAppear.
I'm adapting my app to iphone 5 and I've got a problem. I saw all documentation regarding this and it didn't work yet.
I put the Default-568h#2x.png and everything resized successfully.
The problem is in the touch stuff. I've got a toolbar on the bottom and when I touch it nothing happens :( in the retina 4" simulator. Works fine in retina 3.5
In retina 4", if I set the toolbar in the inspector above 439 px in the Y position works fine. Anything below this makes my toolbar not to work.
As I said, I tried many many things unsuccessfully.
I'm using Xcode 4.6.1, I've got a Main View (not having a Window option in the Attributes inspector).
Thanks in advance.
Your window or the main view is not resizing correctly. Make sure you have set them up such that they autoresize in both directions. Try to set different background colors to your views to find the view that is not resizing correctly.
Ensure that all of your views are auto-resizing correctly to fill the screen. It sounds like the main container view you have isn't being resized and is drawing the toolbar outside of its frame. This will work from a visual point of view as UIView - clipsToBounds defaults to NO, but touches won't work outside the frame.
I have encountered a problem developing an iPad app with xCode.
When I load a view into my rootViewController like this
[self setView:viewController.view];
The view is always displayed in Portrait even though the device is rotated to landscape.
I checked all options and tried changing the shouldAutoRotateToOrientation method and it seems to have nothing to do with it.
If I rotate the device to portrait and then back to landscape it works.
Does anybody know why this is happening?
Best regards,
Matteo
The problem was that I was nesting viewControllers which leads to bad behavior like rotation notifications not being sent to certain ViewControllers.
I'm programming an iPad application and I just wrote the rotate methods and there are some buttons. I used CGRectMake method and re-positioned buttons ... portrait and landscape modes all works fine but my problem is buttons are not re-positioned when I turn my ipad upside down. Need Help
UIDeviceOrientationPortraitUpsidedown is the solution