Well this has been bugging me for quite a while so now i'll ask
When should uiviewcontrollers be declared as properties? I noticed that in many examples uiviewcontrollers that are being pushed and popped on a uinavigation controller are not declared as properties.
I took that forward and now every uiviewcontroller i use inside my code ...
Hi,
I have the following structure in Navigation Controller
RootViewController
|
|--FirstViewController
|
|--SecondViewController
How can I jump directly from FirstViewController to SecondViewController without showing RootViewController. I would like to put a button to the FirstViewController's N...
Hi, everyone,
I want to ask a question about the UI item on the UINavigationBar on the iPhone application. Im my program, there are a navigation bar and UITableView, like the following structure.
UIView (DataRootViewController.m)
|
+- UINavigationBar
|
+- UITableView
And, I want the it display the detail of the data when the user pr...
Hi friends,
I am working in login/logout from my current application in iphone sdk. I am using many constant value in my application in various view controller. is it possible dealloc all values at final view controller?
Any suggestions? Thanks in advance
Regards,
sathish
...
Hi,
i've a 3 views based app. To navigate from different views i use the delegate method, for example in the second view i've a delegate which is the reference to the first view and when i want to pass from the second to the first view, i call a method of the delegate which made a simple : [self dismissModalViewControllerAnimated:YES]; ....
Hi, I'm very new to iphone programming. I'm trying to write an application where I can slide one view off the screen composed of a label and an image, and another will appear. However, I don't want any bars or navcontrollers (atleast not visible ones) involved, anyone know how I can just load another view?
...
With multi-tasking in iOS4, the home button puts the app into background and when it comes back into foreground I want the View Controller to 'refresh' (and hence viewWillAppear to be called). I put this in the app delegate thought this should work but nothing happens
- (void)applicationDidFinishLaunching:(UIApplication *)application {...
Im using code very similar to below:
- (void)flipToViewController:(UIViewController*)targetViewController
transition:(UIViewAnimationTransition)transition
{
if( targetViewController )
{
[[[self activeViewController] view] setUserInteractionEnabled:NO];
// force the view to be instantiated (loadView/layo...
controller.modalTransitionStyle = UIViewAnimationTransitionFlipFromLeft;
[self presentModalViewController:controller animated:YES];
Is there any way to make it flipping with a thick border/side? (like iBooks app, when you're switching between books view and the books store)
...
So essentially I'm inserting "startViewController" into "mainViewController" now of course I can access startViewControllers methods from mainViewController but I was wondering how to do the opposite? Occasionally startViewController will need to call something in mainViewController and I was just wondering how I do this?
Thanks in adva...
Hey Guys,
I currently have several view controllers and transitions set up throughout my app using:
//switches controller
ViewController2 *controller2 = [[ViewController2 alloc] initWithNibName:@"ViewController2" bundle:nil];
controller2.modalTransitionStyle = UIModalTransitionStyleCoverVertical;
[self presentModalViewController:contr...
My view controller is set to load the view from Nib file. At some point in viewDidAppear I may change the self.view and the view may disappear, next time viewDidAppear I may decide to load original view from the nib, how would I do that?
...
Hi,
I would like to know, I have an UIButton in class A that does
presentModalViewController:aViewController...
I want to check when aViewController is dismissed.
How can I do that?
Thanks!
...
Hey Guys,
I currently have several view controllers and transitions set up throughout my app using:
ViewController2 *controller2 = [[ViewController2 alloc] initWithNibName:@"ViewController2" bundle:nil];
controller2.modalTransitionStyle = UIModalTransitionStyleCoverVertical;
[self presentModalViewController:controller2 animated:YES]...
Hi,
I have a navigation based iPhone app.
When you press on a cell in the tableview a new UIViewController is pushed to the navigation stack. In this view controller I am setting a custom titleView in the viewDidLoad method:
- (void)viewDidLoad {
[super viewDidLoad];
// Setup custom navigation title
[self setTitle:@"Mediap...
I have a app that uses several view controllers. In one instance I need to uses an int (int lives) in a seperate view controller from where it is created. I have tried using it and it throws and error at build claiming "lives" undeclared. I am already importing the view controller where the int was declared. I am stuck on this one.
I w...
Hi all,
I know I'm probably going to be berated for not properly reading the HIG or some documentation, but after going through several training videos and building a number of small projects on the iPhone, I'm now trying to put stuff together on the iPad and, well, my brain hurts.
I understood the idea on the iPhone that one view = on...
Hello,
I am using UIViewController (a subclass of course) with a text field which sends an action when the contents changed (to the contentsChanged: selector of the ViewController). It is done by sending contentsChanged: to file's owner in IB.
But when I test it, it says : "-[NSCFString contentsChanged:] : unrecognised selector sent to i...
Here is my dilemma. I would like to have a text box and a button. The user types in text and then presses the button. Once the button is pressed, a text message window (using MFMessageComposeViewController) comes up. I don't know how to set this up. The problem is that the TextBox will require a delegate (UITextFieldDelegate) and the MFM...
Hi,
What are the possible ways to send data to previous view in iphone. Without using Appdelegate. Because there are chances for my view class to be instantiated again.
...