When I segue from a rear menu cell via SWRevealViewControllerSeguePushController to a UITableViewController, the animation starts quickly but then hangs without app crashing, UI is unaccessible via touches and doesn't react anymore. When instead I use a UIViewController it works perfectly. As soon as I add again a UITableView in the UIViewController, it hangs again.
Basically, when using with an UIViewController it works. When using either with UITableViewController or nested UITableView in a UIViewController it hangs.
Any Help?
Vince
Related
Just as the title suggests i will like to place a button over a UITableViewController in Swift.
Observed behaviour:
UITableViewController will not allow me to place a button over It.
Expected behaviour:
I want to place a button over a UITableViewController at 20 pixel from the bottomAnchor
What I have tried so far:
I have tried using a TableView inside a ViewController. I have also tried using the approach of embedding a UITableViewController inside a UINavigationViewController and programmatically adding the a UIButton to navigation view. The both approaches explained above works perfectly but i want a better approach when you using a UITableViewController. I have create the UI interface and i don't want to abandon it to use a tableView inside a ViewController or the UINavigationViewController approach.
Error code: None
Version currently using: Swift 5.2
Picture of the UI interface:
I have made a custom keyboard extension using storyboard, and it works fine in the Simulator.
I need to add emoji function to it.
I have done this by adding a 2nd view on the storyboard and set it to hidden in viewDidLoad and you press a button on the main (A-z) view reveal the 2nd View (emojis).
In the 2nd View I use a collectionView to layout the emoji. It all runs ok in the Simulator. I can see the collection view in grey.
But when I connect the collectionView to the collectionView datasource and delegate in the keyboardviewcontroller like this:
And then run it in the simulator, I get an error to say the plugin in is invalidated and the keyboard will not load in the simulator.
What am I doing wrong, please?
Thank you for any advise.
I am using iOS 8 storyboard with auto layouts. I have objects that are hidden UIViews to start and end up being visible. Whenever I go pick a video from my UIImagePicker and come back, all the objects turn hidden again almost like the UIViewController is being reloaded. How can I fix this? How do I stop the UIViewController from auto reloading every time another controller is shown like in this case a UIImagePicker.
Do you perform any view related show/hide inside viewWill/DidAppear/Disappear or viewDid/WillLayoutSubviews?
I have a problem while using hideBarsOnSwipe;
If I use it on a UIViewController, everything goes fine. But when using UITableViewController, I think its swipe gesture recogniser conflicts with the UITableView's. So table swiping great, but sometimes -generally if you swipe too slow- it's not hiding or showing. But the main problem is this: If I use hideBarsOnSwipe on a UIViewController which contains a UITableView, it is not working on the UITableView. -but working on the other UI elements, which are not have a swipe gesture-.
So, can anyone guide me about this? Am I missing something, or is it normal, or is it a bug?
Edit: I'm working with Objective-C, X-Code 6.1 and iOS8. Didn't try on iOS7.
I've got a stupid UI Problem right now with one of our apps.
I start with a UINavigationController which is the Initial View Controller in my Storyboard. The Root view controller is a UIViewController witch a UIScrollView as subview. The UIScrollView itself has paging enabled and contains several UIViewControllers.
Now here is my problem: The UIViewControllers (lets call them View #1) in the UIScrollView should react to a button event and make a segue to another UIViewController (View #2) which needs to get data from the previous UIViewController and needs to send data back by delegate methods.
When I try to get the UINavigationController and push View #2 on it, nothing happens. Showing it via presentViewController of course works.
Could you just help me a little bit, tell me that this doesn't work and when not why? I'm a little bit stuck at this point and i don't know how to proceed.
DO NOT put UIViewControllers inside another UIViewController (atleast pre iOs5) that goes against apples development guidelines ..
The UIViewControllers life cycle is managed internally and if you directly add the UIViewController as a subview a lot of methods such as
viewDidLoad
viewWillAppear
viewDidAppear
.
.
.
will not be called and from my experience will lead to really erratic behavior
Try and use custom UIView objects to get your internal logic for each view
agreed this somewhat breaks the MVC pattern but this would be the best way to go about your issue
But iOS 5.0 added containment UIViewControllers that correctly handles those lifecycle events by adding child view controllers. so if you are targeting only post iOs 5 devices this maybe a good way to about it
Have a look at this and this