I’ve got an UIActionSheet with a single button that I show in a popover. In landscape mode there is a plenty of space around the popover, so that it displays with an arrow in the middle and everything is fine:
In portrait the popover has to be displayed with an arrow on the right side:
Now the button looks a little bit too low and little bit too far to the right (it’s not the cropping). Have you met this behaviour? Did you manage to fix it?
Looks strange?
Of the top of my head you could send the button a
[button sizeToFit]
message after it has been added to the popover. It's a long shot.
Related
I have made a popover. And it is made from the storyboard so not programmatically or anything.
But the problem is that the position of it is a bit off.
I want the position of that arrow and that to be just under my button
Like this
My storyboard where is look like this
This is an iOS9 glitch, works as expected under iOS8. Apple is probably going to fix this with an upcoming update.
I need to present of a menu UIView on top of my main UIView. This happens when the user clicks the square button as illustrated in the picture. It´s kinda of a facebook app layout except the main view is not pushed away, it´s still in position but with the menu view on top of it.
The menu is supposed to be around 80% in screen width and sliding in from left when clicking the square button.
Every possible non-external-lib solution I´ve tried so far failed so I´m really need some help with this one. Code examples or a push in the right direction would be highly appreciated!
Requirements: No external libs.
Facebook Navigation
Here is an app demo that you can try to use the code from
I am attempting to create a custom popover for an iPad application in landscape orientation. I created a new UITableViewController with static cells on my storyboard and set the size setting to "free form". I then set the size of the UITableView to my desired size. I connected a Modal segue from the parent controller to the new popover.
Then in the parent UIViewController I created a method that performs the segue through a custom presenter. After working through a bug in Apple's orientation handling routines, I got the popover to show at the correct location.
When I run the app, I then discovered that in the top right hand corner of the UITableView a white box is displayed that covers whatever I place in the UITableViewCell. The more cells I place in the table the longer this white box appears. So I believe it has something to do with the UITableViewCell not orienting properly although I have not figured out what yet.
I cannot seem to find what this box is, nor have I had any luck getting rid of it. Has anyone seen something like this? Any help to get this white box remove (or whatever is needed to get the cells working correctly again), will be greatly appreciated.
Thanks in advance
For anyone who is interested, I was able to work around this problem. It turns out that there is a bug in the modal segue logic that does not handle landscape orientation. So I created a XIB and presented that as my modal view. I still need to adjust things since it is landscape but the view displays correctly.
From what I understand this storyboard bug should be fixed soon.
Running into an issue only on iOS 7. On one screen I have a back button that returns to a tableview. That back button's code is [self.navigationController popViewControllerAnimated:YES]; but I'm seeing an issue where all of the content on the screen I go back to is shifting up when i click back (the content shifts to where its supposed to be, but open first viewing it after clicking back, its lower on screen than it should be and then slides up). Previously in iOS 6, it did the animation you'd expect, the left to right movement of the old and new screen, but the content shifting up is new and I can't figure out what's causing it. I set the animated to NO and while that does stop it, I also lose the left to right I want and it looks very jerky going screen to screen. Any thoughts on how to just get the normal left to right slide without it shifting my content?
If you have two VC ,VC1 and VC2 if you are using on VC2.
[self.navigationController popViewControllerAnimated:YES];
Check you xib of VC1 you need to take Navigation Bar at top.
This sounds like an AutoLayout issue. Make sure AutoLayout is turned off, and add the following to your viewDidLoad:
[self.view setTranslatesAutoresizingMaskIntoConstraints:NO];
I'm having a very annoing problem on iOS7. I have a VC with different subviews, one is a tableview that is display fullscreen after pressing a button. This tableview has a search bar with a scope bar in its header that is linked to a search display controller.
On iOS 6 everything runs fine, when I press on the search bar the scope bar is displayed and the rows correctly slide at the bottom as you can see in the images (forget about the big X).
On iOS7 I have a problem.
Everything seems OK(and it's under the status but I know how to fix that).
But when I start a search the layout change leaving some blank space at the top, this doesn't happen on iOS6.
How can I solve that? where this problem comes from?
Andrea
It looks like your search results are pushed down by the status bar height. Try fixing your header position (so it's not under the status bar) and see if that works. If not, you'll need to share some code to show how your layouts are constructed.