Reload round rectangle groupped tableview in Landscape mode - objective-c

I am using Boris's answer (objective-C) for custom tableview with round rectangle border.
Screenshot 1
It is working fine. It shows border around my custom tableView cells. When I rotate device in landscape mode then it also rotates but doesn't auto-resize border.
I also have a sliding menu that opens tableview screen. If I open tableview screen again in landscape mode using sliding menu button then it redraws cell border before cell appears and shows border correctly in landscape mode. So I know it appears correctly in landscape mode too but only when it reloads screen.
Screenshot 2
It should also redraw it upon rotation.I am trying to achieve it from last 2 days but it is not working anyhow. I tried to call willDisplayCell method manually in landscape mode but no success. I tried to refresh and reload tableView but none worked.
How do I fix it? Any help is appreciated.

Related

how to do a "app launch like" fade - zoom ios 7 transition?

I need to achieve the IOS7 app launch transition, in which the the detail view appears with fade effect according to the rectangle frame of the button that fired this view, as described in the image below:
So I have a main ViewController with six buttons, I want to make transition to the details viewControllers with fade and zoom effect, and starting the animation depending of the button frame.
I found RZTransitions, amazing collection of custom transitions, it does exactly what I want but for uicollectionView, I tried but can't get working to do the same for a viewController.
Thanks.

xCode - Why can't I see this object on the view?

This might be a silly question, but why in the world can't I see the the following button that I simply dragged and dropped to the view from the interface builder?
I am using Simulator iPhone Retina (3.5 inch) / iOS 7. When I try to scroll to the bottom, the scrolling ends and I cannot see the button that I placed at the bottom. Why is that? Thanks.
EDIT: I didn't do anything fancy. I simply created a new single view app, and then dragged the button to the bottom of the view on storyboard and then clicked run.
Storyboard simulate size of 4 inch display. When you run it on 3.5 inch display, content at the bottom of the screen will be clipped.
Just add constraints to attach button to bottom of the screen.

Height of my UIScrollView portrait and landscape

Good morning,
I'm working with UIScrollView for the first time and I'm trying to make the height of the scroll as I have elements in my screen. In my attempt I can scroll through my View, but when I'm in portrait mode I have a lot of scroll and when I'm in landscape mode I have the exact scroll that I would have.
How can I make the scroll showing only my content? Because at the moment I set a height and the scroll is showing too much height in my portrait mode.
I will appreciate any help, because I have search some questions but I can't really go on with my project without that.
Thanks in advance.

xcode adding button to uitabbarcontroller is not clickable on landscape

I am adding a simple button into a view on a tabbarcontroller to the bottom right of the view. This button is clickable only when it is on portrait, not when the app is flipped to landscape. The app is using autolayout, so I've added two constraints so it hugs the bottom right of the view on landscape and portrait. Horizontal space at 20 and Vertical space at 24. I've tried this on a UIViewController without the UITabBarController, and it works perfectly. But once the view is added to a tab, it stops working. How do I get this button clickable on both portrait and landscape?
This seems like a very simple setup, but I have no idea why this does not work.
![snapshot2]http://ownits-stackoverflow.s3.amazonaws.com/snapshot2.png
![snapshot3]http://ownits-stackoverflow.s3.amazonaws.com/snapshot3.png
I tried the same thing it works. Here is the sample code try to run it on your own simulator and on device.
Sample Project

content offset for UIScrollView does not change while rotating and scrolling simultaneously

I have a UIScrollView with paging enabled.
Each page is of width 768.0px in portrait mode and 1024.0px in landscape mode.
If I am in the second page in the portrait mode, then the content offset for the UIScrollView is 768.0.
However, if I scroll to the next page and rotate the device to landscape at the same time, the content offset does not update and remains at 768.0 instead of the expected content offset 2048.0, giving wrong results.
Any idea on how i can invoke the scrollViewDidEndDecelerating: with the updated values?
Thanks in advance!
Check the rotation delegate methods for view controller which manages the scroll view. I'd suggest disabling user interaction while rotation is in progress (with willRotate... and didRotate... delegate methods) since you're doing frame resizing for scroll view and it's subviews.