It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 10 years ago.
i have a tabbarController application that has 4 tab bar item ,i need in first item to open a viewController only here.
I try whit this
[self presentModalViewController:nvc animated:NO];
work and to come back previous view?
Thank's for any suggest
From your comment, I now think I understand the question, but let me rephrase it to ensure that I am correct:
What you want to know is that if you open a modal viewController using presentModelViewController, how do you close it to get back to the viewController that presented it.
If that's the correct question, here is your answer:
on the viewController that has been presented (the one that is modal), if iOS 5.x call
[self.presentingViewController dismissModalViewControllerAnimated:NO];
if not, call
[self.parentViewController dismissModalViewControllerAnimated:NO];
Related
It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 10 years ago.
I'm trying to create the same interface as in the screenshot: http://i.imgur.com/6OIcNb0.png
This is my first application I've got running uiswitch, navigation bar and default background settings. How to create a cell with the text on the left and combine it with uiswitch? I use a storyboard.
The comment by H2CO3 is totally right.
Well, I still find something for you, hope that's helpful.
Check the link1 and link2
It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 10 years ago.
Please tell me how or what to write so that always causes ViewDidLoad ViewDidUnload?
IOS5 and Storyboard.
Read a similar topic, but did not understand what it takes to do it.
thanks
viewDidLoad will be called whenever a view controller's view object is loaded (either from a nib, storyboard or manually using loadView).
viewDidUnload is not guaranteed to be called, and in fact in iOS6 and onwards, it doesn't even exist. It is only called when a view controller's view is not on the screen, and the system is under memory pressure. You shouldn't have any code in there that you need to call. That should be in dealloc, or viewDidDisappear, depending on what the code does.
It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 10 years ago.
I have a 3 tabs application in my iOS project, all I want is to start a simple UIView before the delegate loads all the TabBarController with the 3 tabs... Just like a "login" page before load the app.
Then, when the user has the permission, the application dismiss the first UIView and show the tab bar views.
How can I do this?
You can have a modal view controller that is instantly triggered by the first tab in your tab bar.
You can use
[self presentViewController:startViewController animated:NO completion:nil];
in for instance viewDidLoad.
It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 9 years ago.
Ok, I'm learning programming for iOS with Stanford's online course on iTunes U (CS193P) but I can't exactly get a hold on how all the stuff from UIView works.
Could someone explain how the following things work cohesively and how I should use them?
CGContextRef
CGContext(if they're not the same thing)
drawRect
awakeFromNib
Thanks in advance!
CGContextRef
is just the reference to
CGContext.
drawRect
makes your view to draw (or redraw) itself at selected rect. Read here.
I never used it by myself, for me it was enough to do all work in viewWillAppear: and viewDidLoad:.
After all outlets and actions are connected, the nib loader sends awakeFromNib to every object in the nib. (c) Read about it here.
It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 10 years ago.
Is it possible to make a quiz app without writing any code in Xcode at all, just using the story board feature?
Storyboard:
A storyboard is a visual representation of the user interface of an
iOS application, showing screens of content and the connections
between those screens. A storyboard is composed of a sequence of
scenes, each of which represents a view controller and its views;
scenes are connected by segue objects, which represent a transition
between two view controllers.
Without logic you will not be able to create anything useful or engaging. How would you tally a score? Track results/improvements? Randomize the questions to prevent the user from just memorizing the answers? The only kind of quiz/game I can think of you could possibly make using only storyboard would be to create a view with some text saying "You Passed" and then creating other static views with questions and buttons. When the user selects the correct button for the answer then segue to the next question otherwise segue to a "You Failed" view. This would require the user to have to get all the questions correct to pass.
Update:
Added an example on GitHub of a simple quiz made only in storyboard. You will notice that the navigation is terrible as a result of no added code.