Top "Viewcontroller" questions

viewcontroller is a design pattern which is a hybrid of the view and controller components of the MVC architecture

Loading ViewController from xib file

I had a MyViewController.swift and a MyViewController.xib presenting the layout of MyViewController. I tried different methods to load …

ios swift initialization xib viewcontroller
In iOS, how to drag down to dismiss a modal?

A common way to dismiss a modal is to swipe down - How do we allows the user to drag …

ios viewcontroller gesture-recognition
Cannot call value of non-function type 'String'

I'm trying to pass the ILTItem variable into my ILTViewController, triggered by AppDelegate.swift when the user launches my app …

ios swift struct viewcontroller
iOS Nested View Controllers view inside UIViewController's view?

Is it typically bad programming practice in iOS to have a nested view controller's view inside UIViewController's view? Say for …

ios uiviewcontroller viewcontroller
Presenting a view controller programmatically in swift

Hi I am trying to convert the following objective C code into swift to navigate from one view controller to …

swift viewcontroller
Only ONE VIEW landscape mode

I finished my iOS app but I need to set only ONE view to landscape mode, the rest of the …

ios objective-c xcode landscape viewcontroller
How to dismiss the current ViewController and go to another View in Swift

I am new to Swift and I want to know how to dismiss the current view controller and go to …

ios swift segue viewcontroller
Open Specific View when Opening App from Notification

I have just added push notifications to my app. I'm wanting to have so that when a user opens the …

ios push-notification viewcontroller
setValue:forUndefinedKey:]:

FinalViewWithSending *newView = [[FinalViewWithSending alloc]initWithNibName:@"FinalViewWithSending" bundle:nil]; newView.modalTransitionStyle = UIModalTransitionStyleFlipHorizontal; [self presentModalViewController:newView animated:YES]; //it crashes here with …

xcode modalviewcontroller viewcontroller sigabrt
Swift 3, Xcode 8 Instantiate View Controller is not working

Xcode 8 when it compiles says to change instantiate viewcontroller with identifier to simply, instantiate view controller. I did that, why …

swift storyboard swift3 viewcontroller xcode8