FAQ Database Discussion Community


Remove subview on viewdisappear add again when appear - not working- ios sdk

ios,pushviewcontroller,addsubview,superview,poptoviewcontroller
I am working with the application and want to remove table view when view disappear and want to add that same table view when view appear. Currently From A ctr(push) -> B ctr From B ctr(push) -> C ctr -- I removed tableview in B ctr from superview in viewwilldisappear...

Watchkit , dismissController function

ios,pushviewcontroller,watchkit,apple-watch
i want to push in another view controller with code [self pushControllerWithName:@"secondeviewcontroller" context:@"Hello"]; its work great for pushing but for dissmiss in secondviewcontroller doesn't work [self dismissController]; ...

Crash on pushViewController

ios,swift,viewcontroller,pushviewcontroller
I'm trying to push a ViewController, but my app crashes every time. I'm using the UIImagePickerControllerDelegate to take a picture, and once the picture has been taken, this code runs: func imagePickerController(picker: UIImagePickerController, didFinishPickingMediaWithInfo info: [NSObject : AnyObject]) { let pickedImage = info[UIImagePickerControllerEditedImage] as! UIImage // Reset the cameraButton and...

push view controller after dismissing presented view controller

ios,navigation,pushviewcontroller,presentviewcontroller
I have this navigation stack RootVC ---> VC1 --> (presenting)-> ModalVC and I have VC2 (not in navigation stack). When presenting ModalVC, I want to click on button in my ModalVC to dismiss ModalVC, then push VC2 into the navigation stack after VC1 at one click. It should look like...

pushviewcontroller doesn't work?

ios,objective-c,pushviewcontroller
There is a button at the viewcontroller and when i click the button pushviewcontroller doesn't work. my appdelegate.m file : - (BOOL)applicationUIApplication *)application **didFinishLaunchingWithOptionsNSDictionary** *)launchOptions { self.window = [[UIWindow alloc] initWithFrame:EK_SCREEN_BOUNDS]; ExampleViewController *exampleViewController = [ExampleViewController new]; self.window.rootViewController = exampleViewController; [self.window makeKeyAndVisible]; return YES; } Button click method (in ExampleViewController): mainViewController...

pushviewcontroller with zoom animation like ios photo app

ios,uinavigationcontroller,pushviewcontroller
I've two UIViewControllers. My first UIViewController shows various video thumbnails, photos and notes. And second controller is resposible for showing the selected video, photo or note in previous controller. I've also a UICollectionView in my first controller which lists everything just like Apple's Photo App in iOS. I use "pushviewcontroller"...

How to pass label data to another label in the second view controller

objective-c,uilabel,pushviewcontroller
I've been searching for passing label data to another view controller, and found the following solution. However, it doesn't show the label text in another view controller. please help SecondViewController Header @interface SecondViewController : UIViewController { IBOutlet UILabel *copy; } @property (nonatomic, retain) NSString *data; In SecondViewController Implementation copy.autoresizingMask =...

ios SWRevealViewController reveal push segue animation

ios,animation,sidebar,pushviewcontroller,swrevealviewcontroller
I'm using SWRevealViewController(the updated version) to make a slide-out sidebar menu app, connecting different rear view controllers (based on different sidebar cell tapped) by SWRevealViewControllerSeguePushController class segue. every time I tap a cell which is different from the current one the sidebar becomes fully reveal then the new rear view...