uiviewcontroller

How to create multiple table view in a View Controller for iPad?

Hi friends, I am working with the universal apps. Now i want to create a three table views in my view controller for iPAD. I have three separate view controllers with XIB.So how can i add the other two table view as subview in the main controllers. Please give me some sample applications and links. In my application, i have three view c...

UITabBarController is slow in responding to touches

I have a UIViewController that contains a UITabBarController with three tabs (each tab being a UINavigationController). The problem that I am having is that in the simulator and the device, going from one tab to another takes a few seconds. I do not (yet) have a way to measure how long it takes, however, it is noticeable. I wanted to ...

Hierarchy of iOS App UI

I am getting confused reading about CALayers, UIViews and View Controllers. Can someone explain the relationship each of those have to each other (and include anything I might have missed?). I am particularly interested in a View that may have more than one layer. Does that mean the the View Controller has multiple UIViews or that the U...

How can I make sure that UIViewController will not resize my view?

In my app, I have smaller sections where I want to use the MVC pattern to control these. So for example on one screen I have 3 UIViewController instances with their views visible at the same time. From what I know, UIViewController is only good for fullscreen usage. Someone said it can occassionally resize it's view without warning, for...

Create a new ViewController object only if it doesnt exist

I use the following code to bring up a view -(IBAction) openSomeView{ SomeView *sv = [[SomeView alloc]initWithNibName:@"SomeView" bundle:nil]; [self presentModalViewController:sv animated:NO]; [sv release]; } How can I detect if this view has been created already and if so, then just show it now create a new object? Thanks ...

UIView within UIView

Im wondering what I am doing wrong: Create xib and add on it UIView "FirstView". Under this UIView "FirstView" add another UIView "SecondView". On the FirstViewController load SecondView from nib. it works at this point. Whats not working is that the "FirstView" doesnt seem to change after point 3. So the "SecondView" is properly loa...

Create a UIImage from another view controller

How does one create a UIImage within one viewcontroller, when the action which I want to trigger the creation is a button in another viewcontroller? So I would like to have a button in a viewcontroller, which when pressed, dismisses this view and create a UIImage in the other view. How is this done? Thanks ...

How to show a view from scrollview

Hi everybody! I have a view that contains a ScrollView opening two xibs. There is a button on a Xib contained in ScrollView. I want that after clicking the button, open a new view outside of the ScrollView. But I can not open a new view outside the Scrollview. = / Any suggestions? Thanks. ...

Nib loading with View Controllers on iOS

Does anyone know the rules for default nib loading of iOS View Controllers? Specifically what naming conventions are supported by -[UIViewController initWithNibName:nil bundle:nil]? The docs, quoted below, don't seem to indicate any special magic in determining the name. However I have determined that there does appear to be some magic ...

Click on UIAlertView crashes app if view is dismissed

A UIAlertView is displayed if an error occurs. But in the meantime the view on which the UIAlertView were called has been dismissed (and therefore released). If the user clicks on OK the app crashes because a message to a released instance is sent. This will cause your app crashing: UIAlertView *alertView = [[UIAlertView alloc] initWith...

Add a new iPhone View above everything, including the navigation bar

Hey, In an application I'm developing, everything starts from a navigation controller, which then loads up several pages. My question is, how can I load up a new view ABOVE this? The closest I've got is to do this in the App Delegate: - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launch...

iPhone UIActivityIndicatorView While Loading UIViewController

Hi there, I've an application with a UITabBarController with five tabs. Tests on real device show that switching from a tab to another, may take one or more seconds to load the views, because I also have to download some data from the Internet. What I would like to do is to show a UIActivityIndicatorView while the view is loading, but I...

UIViewController freezed during update.

Hi there, my main UIViewController should check for some data updates when it loads, if any update is found an opaque subview is added to show progress and so on. Let's say that the method is called checkUpdates, so in my app delegate i do the following: [window addSubview:viewController.view]; [window makeKeyAndVisible]; [viewControl...

frame size and coordinates off (objective-c, ipad)

Supposedly this is a 10 by 10 square 100 pixels on the x axis from the origin and 100 pixels on the y axis from the origin (origin being the top left corner) However it quite clearly wrong. Writing the views frame to NSLog after setting it gives out the same values I put in. Code: ISScrollDock *bottomSV = [[ISScrollDock alloc] init];...

UIViewController Functions Calling Hierarchy

I have been asked this question in many interviews for iPhone Developer position. I have googled it but couldnt find a satisfactory answer. The Question is " what is the order of calling for the UIViewController functions " Some of functions that i know are loadview viewDidLoad viewWillAppear viewDidUnload ...

Extending UIVIewController of my own I got error accessing self.view

I have created a View controller with some methods I need to use often in different aplications. It works like a charm if I use it directly but when I try to create another UIViewController that extend my class I cannot access self.view anymore. This is the init method of the original class: - (id)initWithNibName:(NSString *)nibNameOrN...

How to flip view controllers like flipping photos in the photo library

I'm new in iOS developing. Will someone help me? ...

Why is the title bar appearing behind the status bar after a rotation?

I have a UIViewController whose view is a UIWebView with an embedded movie. When the movie is playing full screen, and the device is rotated, the title bar ends up behind the status bar after the movie is dismissed. Why might this happen? ...

Audiotoolbox Sound Volume Issue

I have some Audiotoolbox sounds. I created a sound in a UIViewController A. Using AudioServices functions, I play them, and it's fine. When I change the system sound volume via device (with my finger), the sound's volume behaves just fine and changes accordingly. But then I alloc another UIViewController B and add its view as a subvie...

ViewController variable release

I added a timer in a VC and when I call the delegate to change the view to another VC I found that the timer is still counting which didnt released as expected - (void)goTitle { NSLog(@"go title"); IPAD03ViewController *vc = [[IPAD03ViewController alloc] initWithNibName:@"IPAD03ViewController" bundle:nil]; [viewController.view removeFr...