I've changed my UITableView to be grouped in Interface Builder (which looks so much nicer!), but now the Disclosure Indicator against my UITableView row moves a few pixels up and right whenever I press my edit button in my navigation bar (at the same time as the red delete buttons move in)!
Has anyone seen this before or got any suggestions?
Edit:
Ive added a screen shot to this question. While it is very hard to notice even on these large screen shots, the chevron in the upper right corner of the second picture is a few pixels up and right of the chevron on the first picture. This is obviously more apparent when it moves in front of your eyes. On the second picture, the edit button has been pressed (which you can tell, because the delete icon has appeared)
Related
I need some help figuring this out.
I have a simple UI I need to implement. I have 4 buttons that take up the entire screen and with the scrollview, I want the user to be able to scroll to make the 5th button visible. I know how to use auto layout to make my first four buttons display how I want them. The first button is 40% of the visible screen, the second button is 15%, the third 30% and the last button is 15% of the visible screen. The 5th button should be hidden but then revealed when the user scrolls down.
(To clarify, all buttons have width equal to their superview, proportional height to the superview and all buttons have no spacing between each other)
This is where I am stuck. I want the proportions as I stated above, but also want the 5th button to show when scrolled to, possibly at 10% of the now visible screen (with the first button now not showing itself fully). Is there a way to do this?
You can set the contentSize of the UIScrollView to be larger than the visible screen. The buttons can be sized and placed in a way to have all 5 buttons visible (with the 5th button actually off screen). The scrollView will bring the 5th button into view when scrolling.
I worked up a simple prototype using just a storyboard (and setting the contentSize of the scrollview in Runtime Attributes section, but this could be done in code if you need to pragmatically determine the button sizes.
I am working to support the rotation screen in Iphone now and running into the issue. When the screen is in Poitrait mode, the position of navigation bar and its items on it looks perfectly.
When I switch to LandscapeToLeft, the width of navigation bar is stretched and it is fine.However, the position of items bar on it stay the same...Their positions are not changed at all.Therefore, there are huge room from the rightmost button to a right margin. ...I cant not attach any images so that you guys can easily see it....Sorry about that
If you were experiencing it before, please help
Any ideas are welcomed here. Thanks
PS: these itemBarButton are added by drag and drop in the toolbar in StoryBoard
Take a look at adding a "Fixed Space Bar Button Item" or "Flexible Space Bar Button Item". You can drag them into the navigation bar from the object library.
Hope someone can help me out here.
I have a viewcontroller with view that contains a red image. This image has a zPosition of 1.
There a function I press and it adds a new view on top of this (and viewcontroller). that places a button on top of the red bar with a zPosition of 2.
Then when you press the button, a 3rd view (and controller) slides up a menu behind both of them (image and button) as it has a zPosition of 0.
Now the issue is that the menu slides up under the red bar as expected however for some unknown reason (why I am here) the button seems to be under the red image. What every I try, I cant get the button to sit on top of the image.
I have tried:
propertyViewController.shortlistButton.layer.zPosition = 2;
[propertyViewController.view bringSubviewToFront:propertyViewController.shortlistButton];
propertyViewController.shortlistButton.layer.transform = CATransform3DMakeTranslation(1, 1, 1);
(stackoverflow post)
You could simply try adding the red button as a subview of red image.
I have a toolbar, where I want to have one UIBarButtonItem centered and have another on the very right. However when I add the button on the right, my centered button gets shifted further to the left (see attached). I can't figure out how to get this resolved without using code (I would like to use interface builder only). Any ideas?
To do this in just IB, add a fixed bar button item to the very left of the bar that's the exact same width of the 'switch camera' button, followed by a flexible button, your camera icon, another flexible space, and the switch camera.
So it would look like:
|--fixed space--||--flexible space--||Camera Button||--flexible space--||switch camera|
I want to position my UISearchBar at the middle of the screen, but I still want it to slide to the top when user starts to edit text like it was positioned strictly under navigation bar.
Do i have to take care of its frame by myself?