uiviewcontroller

How to show and dismiss ViewControllers without the user seeing

I have several view which I show and dismiss, but it is visible when a view moves onto screen and is dismissed from the screen. How do I set it to just appear without any animation? I have tries the animation:NO, it doesnt change anything. Are there special calls for different animation types? ...

iPhone SDK Problem: load TableView whitin TabBarControlled Views

Hi there, I've a problem and cannot find a solution to the whole day now. I'm new to iPhone SDK, so I guess I'm just missing something. My app consists of a TabbedNavigation, having three ViewControllers. Everything works as expected. Now I want to open a new view (preferably from a NIB) when the user tabs a button (not the tab button...

Loading a xib (nib) file twice to obtain two different instances of a view

Hi, I have a UIViewController* compViewController which switches between two copies of the same view (with small differences between the two views). Currently, both views come form the same xib file. The xib file contains two almost identical copies of the same view hierarchy. One of the copies, "the main one" is connected to the vie...

UIViewController and UISplitViewController in UITabBarController shouldAutorotateToInterfaceOrientation

Hello Guys, i have some Problems with my iPad Code. I have a UITabBarController which holds some UIViewController and a UISplitViewController. The problem is that the UIViewController and even the UISplitViewController dont recognize orientation Changes correctly. i have set shouldAutorotateToInterfaceOrientation on my TabBarController...

Please help memory warning 1 then 2

Hey guys just a quick question: I have an app, it has multiple view controllers, who have 2 views each. one for portrait and one landscape. The delegate has all the actions in it. These are called from the view controllers The_Ride_Vol_1AppDelegate *mainDelegate = (The_Ride_Vol_1AppDelegate *)[[UIApplication sharedApplication] delegat...

iPhone Memory allocation problems

Within my application I have 20 or so ViewControllers and Xibs that the user should be able to access. The problem is after looking at 5 or so of them the application crashes due to lack of memory. I have released all memory that I have allocated within the ViewControllers so I can only assume it's because its holding the memory of so ma...

how to pass text between views

i made 2 views and i want to send text of label on main view to sub view to an want to print it there on another label's text value.... how to pass that text ...

Presenting view controller modally animates slowly

I have a view that I am presenting modally. For some reason it animates very slowly. [self.parentViewController.tabBarController presentModalViewController:browser animated:TRUE]; I'm not sure why? I have even tried: [self presentModalViewController:browser animated:TRUE]; UPDATE: The UITableViewController that is presenting it, is d...

Why can't new ObjC classes descend from UIViewController?

So, I've been making iOS apps since the first iPod touch came out, but something has always flabbergasted me; why is the list of new Cocoa Touch classes restricted to subclasses of NSObject, UIView, and UITableView? I routinely make subclasses of UIImageView and UIViewController. Am I "Doing It Wrong™?" Have I totally misunderstood MVC...

refactoring similar code targeted at all view controllers's navigation bar

Hello I'm trying to find the best way to refactor this. Right now, each of the view controllers (about 20 of them) have a function that initializes the content of the toolbar / navigation bar like so ie, -(void)toolbarInit and on each of the controller's viewDidLoad, you will see that the function is being called ie, [self toolbarIni...

Should I release self.view?

Hi everyone, I have a question regarding to self.view in a UIViewController. First, in my app, everything is created programmatically. And normally I create self.view in the loadView method: self.view = [[UIView alloc]initWithFrame:SCREEN_FRAME]autorelease]; // SCREEN_FRAME is a constant At this moment, the retain count of self.view ...

App terminates after viewcontroller calls the delegate to close the view.

Hi experts, here the situation: i have a viewcontroller which calls in the function "viewDidLoad" a function in the AppDelegateIphone to terminate this view. The problem is that this exception comes if i make this: splashScreen.view = nil; *** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: ...

iPhone: Handling touches transparently

I have a UIViewController and an associated with it UIView. The UIView has a number of subviews. How to handle touch event inside a specified rectangle in my UIViewController subclass? This handling should be transparent: UIView and its subviews should still receive their touch events even if they intersect with the specified rectangle...

UIImageView subclass not passing touches to controller subviews.

When I add a UIImageView subclass (fullscreen) behind a couple of UIButton subclass instances, those buttons stop receiving the touches and don't function anymore. Nothing I have tried has worked to restore their connectivity to user touches. I have tried: a) Using a UIImageView subclass for the front view (that receives the touches) an...

Using UIViewController MediaPlayer additions in iPhone 4

I want to use the UIViewController MediaPlayer additions in an iPhone 4 static library. The .h of my view controller subclass imports <MediaPlayer/MediaPlayer.h>. However, when I use presentMoviePlayerViewControllerAnimated in the .m I get a compiler warning: 'MyViewController' may not respond to '-presentMoviePlayerViewControllerAnima...

My subclass as a property won't accept new values for its properties

I have a UIViewController that presents another UIViewController with a picker and returns four values. I also have a custom class called Chemical that can hold these values. In the delegate method that receives the values (the didSelectSource one in AdjustViewController) I put a breakpoint and I can see that the proper values come bac...

UiViewController Loading/Unloading

Hello I have a RootViewController, and multiple ViewControllers that branch out from the same when certain buttons are pressed i.e. -(IBAction)newWorkoutButton { [self presentModalViewController:newWorkoutViewController animated:YES]; } When a user presses the back button, the current ViewController animates back to the previous ...

UINavigationController / reloading views / working with views!

Hi stack overflow! I have a view based project working with a UINavigationController. The RootViewController performs operations for writing to a data model when a new entry is made. I have an add (+) button on my main screen that adds an entry with a timestamp and records this to the data model. I want to click the add button, brows...

Proper way to release view in UIViewController

I am building my own view in loadView of view controller. Just to check if I can release the view like below or there is anything else I will need to release it? I know framework will set it to nil once it requires to free up some memory. - (void)loadView { self.view = [[UIView alloc] initWithFrame:CGRectMake(0, 0, 200, 200)]; [...

Only direct subviews of the MainWindow view gets orientation set by iOS?

Hey guys, Whenever my app is rotated, only the viewController of which I've added his view as a subview to the mainwindow gets his interfaceOrientation property updated, the rest remains ignorant of the fact the device has been rotated. Is it my responsibilty to notify other objects of the change, and if so, what's a nice way to do it?...