Questions tagged [viewcontroller]

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

A viewcontroller responds to events by dispatching calls to a mapping table which matches views and controllers with each event target. It is implemented as an object in many frameworks, including:

2792 questions
5
votes
1 answer

Adding & Removing A View Overlay in Swift

Following from this question: Loading Screen from any Class in Swift Issue: The loading overlay view will display but will not hide when hideOverlayView() is called. Oddly however, the overlay disappears after some time (15 to 30 seconds after it…
Colin
  • 675
  • 1
  • 11
  • 32
5
votes
1 answer

Pause SpriteKit Scene When Clicking on iAds

I am working on a SpriteKit project and I'm struggling to pause the game when the iAd is clicked, and unpause when the iAd is dismissed. The main problem is pausing the Scene from the ViewController, I know that if I want to pause the Scene from the…
nick
  • 101
  • 10
5
votes
3 answers

Application tried to present modally an active controller ios

I was trying to set the ViewController with a parent view controller before it shows show that it can provide call backs, I done this using PrepareForSegue - (void) prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender { if…
user1494994
5
votes
2 answers

Using multiple copies of the same view controller in a storyboard

I have the following setup in my app: My initial view controller is a UITabBarController. the…
Niv
  • 2,294
  • 5
  • 29
  • 41
5
votes
3 answers

iOS first launch tour - detecting if the app is launched for the first time

Brand new to this site, pretty amateur knowledge here! Started teaching myself a few weeks ago. Got a pretty solid iPhone app however the last feature I would like to implement is the ability to; Create a 'first launch only' guided tour. What i want…
Luke
  • 51
  • 1
  • 3
5
votes
4 answers

Modal Segue Chain

I have an iOS app that has a log in view (LognnViewController) and once a user is successfully authenticated they are taken to another view (DetailEntryViewController) to enter some simple details. Once the details are entered the user is taken to…
Craig Koster
  • 496
  • 5
  • 15
5
votes
1 answer

Passing an entire UIView From One ViewController to another via UINavigationController

This is what i am doing - I have a UIView - I pass it from one viewcontroller to another. When I come back to the first viewcontroller - the uiview is missing - Instead there is a white blank space in its place. I am using ARC - any idea - if its…
vivianaranha
  • 2,781
  • 6
  • 33
  • 47
5
votes
1 answer

MvvmCross Using a modal ViewController from a Tab

I've searched on SO & elsewhere for MvvmCross & Modal, but the one existing answer isn't helping us. We're developing a cross-platform app using MonoTouch & MvvmCross, which seems to be pretty powerful combination. However, we're having a few issues…
SomaMan
  • 4,127
  • 1
  • 34
  • 45
4
votes
2 answers

ios how simulate back button in a ViewController

i have more viewcontroller that start from rootviewcontroller. So for example i start with controller A so pass to B and go to C the third. Normally to come back we need to push back on left top. Instead i want to know if is possible instead use…
Falco
  • 149
  • 3
  • 13
4
votes
1 answer

How to access multiple View Controllers from App Delegate and/or other View Controllers?

I suspect this is a very simple answer or I'm on totally the wrong track. I need to be able to set variables and access fields etc in a view controller from either App Delegate or another view controller. Previously I could do this from App Delegate…
Richard Williams
  • 337
  • 1
  • 5
  • 12
4
votes
3 answers

Always get memory warning when with a UIImagePicker for camera

I am using a UIImagePicker in my viewController, and there are two kinds of methods in which I always get a memory warning, as well as the very famous "wait_fences: failed to receive reply: 10004003", but I can't trace to the specific line of code…
4
votes
6 answers

How see code-view for view controller in Xcode?

In my Xcode project, I have several view controllers in my storyboard. How can I see the code for a specific view controller? Because each view controller will need to have different functions from the others. So, where can I write that…
user1104092
4
votes
2 answers

Return to root view in IOS

To some this may sound like a daft question. I've searched around, and found little, mostly because I cannot find the appropriate search terms. Here what I want to do is: The application begins at view A. View A launches view B, and view B launches…
Andrew S
  • 2,847
  • 3
  • 33
  • 50
4
votes
3 answers

A view controller is in landscape mode, but I'm getting the frame from portrait mode?

I have a settings view controller with a table view. The table view is supposed to set its frame to be the frame of the view controller. My app only supports landscape mode, so that's the orientation I'm always in. However, when the settings view…
Mahir
  • 1,684
  • 5
  • 31
  • 59
4
votes
4 answers

iOS : 2 Buttons both call the same view controller. How do I find which one was clicked?

The title says most of what I'm looking for: I have 2 buttons on my main menu that both call the same view controller. Depending on which button was clicked the view controller behaves a little differently. I thought I had the fix using…
ballofpopculture
  • 741
  • 1
  • 9
  • 18