viewcontroller Questions
28
Solved
In iOS 13 there is a new behaviour for modal view controller when being presented.
Now it's not fullscreen by default and when I try to slide down, the app just dismiss the View Controller automat...
Microsporangium asked 3/6, 2019 at 23:1
7
Solved
I'm trying to pass the ILTItem variable into my ILTViewController, triggered by AppDelegate.swift when the user launches my app via a deeplink.
The code I have errors with:
Cannot call value of...
Unpaged asked 27/1, 2016 at 14:15
6
The project I'm working on started as a single view application with storyboard, and I've added 2 more view controllers, each with a .m and a .h file. However, every time I save, quit, and then res...
Instate asked 11/1, 2013 at 19:27
7
Solved
I created first my TestViewController.h and *.m. Afterwards my TestView.xib.
Now I need to tell my xib: "Yes, please take the class TestViewController as my File's Owner".
I open up my xib, go t...
Yep asked 27/6, 2012 at 11:57
3
Solved
I've read several posts on this issue but none of them solved my problem.
I'm coding an app where I have to click on a button ("Prepare") to go to the following ViewController. When the button is...
Shutdown asked 2/9, 2017 at 21:6
9
I need to refresh a view controller when a certain button is tapped. Simply activating viewDidLoad() does not seem to be working for what I need to do. However, when I leave the view controller and...
Stockman asked 3/7, 2015 at 13:16
14
Solved
I programatically have multiple View Controllers in an iOS Swift Project. I do not have the storyboards and would like to avoid them if possible. Is there a way to switch to another viewcontroller....
Stoller asked 7/6, 2014 at 16:56
4
I'm trying to make a registration form with multiple views but only one view controller. After proceeding to the next view I'm writing the input to a struct which will be sent to the server later o...
Poeticize asked 12/1, 2017 at 20:58
3
I have looked all over for the answer to this question and can't seem to find it. How can I call a viewController method from swiftUI (e.g. on a button click)?
I have a viewcontroller that looks li...
Livy asked 21/6, 2020 at 21:8
16
A common way to dismiss a modal is to swipe down - How do we allows the user to drag the modal down, if it's far enough, the modal's dismissed, otherwise it animates back to the original position?
...
Sisterly asked 26/3, 2015 at 22:52
16
Solved
I'd like to navigate from one view controller to another. How can I convert the following Objective-C code into Swift?
UIViewController *viewController = [[self storyboard] instantiateViewControll...
Shanaeshanahan asked 4/6, 2014 at 13:1
11
Solved
I need write some code to switch the view to another tab when the iOS app starts (so, for example, the second tab is shown by default rather than the first).
I'm new to Swift, and have worked out ...
Fewell asked 15/8, 2014 at 11:51
2
Solved
When I change my ViewController class name after it's been created and assigned to a view controller in storyboards I run into problems with the IBOutlets of that view controller, and Xcode does no...
Chondro asked 16/6, 2018 at 15:44
3
Solved
I'm currently building an app with a modal view popping up that contains a WkWebView. When I want to upload an image within this modal view and the Photo Selection appears, the modal view just dism...
Plauen asked 22/5, 2016 at 22:30
10
Solved
I'm making a game using SpriteKit.
I have 3 viewControllers: selecting level vc, game vc, and win vc.
After the game is over, I want to show the win vc, then if I press OK button on the win vc, I w...
Keldah asked 22/6, 2015 at 21:55
14
I had a MyViewController.swift and a MyViewController.xib presenting the layout of MyViewController.
I tried different methods to load this view controller including:
//1
let myVC = UINib(nibName...
Asymptotic asked 5/5, 2016 at 9:5
2
Solved
Introduction:
I want to create an app that displays some "user guide" on its first launch, I've already finished the part that detects if the app is first launch, but when it comes to the setting ...
Phosphorous asked 3/10, 2018 at 11:27
3
Solved
I know how to create singleton class in swift. The best and easy way to create singleton class is the following:
class Singleton {
static let sharedInstance = Singleton()
}
But I don't need sin...
Cambric asked 14/12, 2016 at 7:0
3
Solved
I am doing an object detection and used UIViewControllerRepresentable to add my view controller. The thing is that I can't pass data from my ViewController to my SwiftUI view. I can print it tho.
C...
Devisee asked 22/11, 2020 at 21:6
4
Solved
Xcode 8 when it compiles says to change instantiate viewcontroller with identifier to simply, instantiate view controller. I did that, why does it give two errors?
I'm working with Swift 3. I want...
Chrysoprase asked 29/9, 2016 at 17:52
2
Solved
I am trying to create a custom view controller to be used with a share extension. Everything works, but I don't know how to dismiss the custom view controller. Basically I launch my share extension...
Keim asked 28/4, 2017 at 2:22
5
I have sideViewController with a button and Action, which present new view controller by clicking this button.
class sideViewController: UIViewController {
@IBOutlet var buttonVC1 : UIButton!
@...
Trowel asked 20/8, 2014 at 9:59
20
Solved
I am trying to dismiss a ViewController in swift by calling dismissViewController in an IBAction
@IBAction func cancel(sender: AnyObject) {
self.dismissViewControllerAnimated(false, completion: ...
Isosceles asked 10/7, 2014 at 5:2
4
Solved
I have two ViewControllers -- one with storyboard and one without. Both of those view controllers have their own Navigation Bar at the top. Now when I use self.presentViewController(editorViewContr...
Digenesis asked 22/3, 2016 at 13:49
6
Solved
So my app has the option to sign in with Google. Upon clicking the button that Google provides, a web view opens and has the user input their credentials. After allowing the app to access their inf...
Ahriman asked 21/6, 2016 at 5:55
1 Next >
© 2022 - 2024 — McMap. All rights reserved.