uiviewcontroller

Add Target For UIButton Added to UIView Subclass Not Working on UIViewController

I have a custom UIButton added as subview to a UIView subclass. In my viewController I add the custom uiview as a subview to the controller's view. Then I try to add a target to uibutton (inside viewWillLoad), but the selector is never called. ...

Calling a method back on the parent controller without a warning message

I have a front-view and a flip-view much like the utility weather-app. To avoid dealing with the complexities of protocols... on my flipView I need to call some code that resides back on my front-view. This works... but generates a warning during compile. [self.parentViewController returningFromGetStringView]; Warnings (shows twice)...

Pass a variable between lots of UIVIewControllers

Hello, In my iPhone app, there is a setup assistant which helps users to input a lot of data. It's basically a UINavigationController with lots of UIViewControllers in it. Now, at a certain point, I want to access a variable that the user entered in the first UIViewController he saw. I could pass the variable between every UIViewControl...

Why does my iPhone application crash when it receives a memory warning?

This is sort of a mystery to me. My application does not use very much memory but if I put it in the background and run as many memory-intensive applications as I can, occasionally my application will crash when I try to wake it up. I've looked at the crash log and this is what I see: 0 libobjc.A.dylib 0x000027da ...

Subviews disappearing from UIViewController

Hello, I have application with multiple UIViewControllers using navigation controller. UIViewController contains tableView, searchbar (that I can show/hide) and toolbar. All of this is added as subviews to its view. All this subviews are created after UIViewController is initialized and their content depend on UIVievController's content...

how to add a uiview as a subview of uiviewcontrollr when a button clicked on uiviewcontroller?

Hello all.In my app i need to add uiview dynamically whenever user taps on button in my main uiviewcontroller.How can i do this ...

Low memory warning for NSObject

I have a subclass of NSObject, it is a singleton which loads a list of images into memory, either from hard drive or downloads them from the internet. I want to release the images stored in memory if the app recieves a low memory message, like in a UIViewController. (it then gets the images from hard drive when it next needs them). ...

iphone - What's the logic of UIViewController? will – viewDidDisappear: be called automatically every time it disappear?

Hello. I don't get the delegate logic of UIViewController. It has delegate method of – viewWillAppear: – viewDidAppear: – viewWillDisappear: – viewDidDisappear: So, every time, if a view of a viewcontroller appear or disappear, the according above methods inside the viewcontroller will be called? I have two viewcontrollers. viewcon...

Why does view property of UIViewController increments retainCount on every access?

So this is the question. Why does it do it? Even when a do something like this NSLog(@"view's retainCount %d", [viewController.view retainCount]); it increments the retain count. ...

How to tell when a UIView gains focus

On the iPhone, we can simply use (void) viewDidAppear:(BOOL)animated; to perform actions when a view becomes the focus. In some events, we have a modal view with another modal view on top of it and, on the iPhone, closing the topmost modal view will fire the viewDidAppear for the lower modal view. This is not the case for the iPad, as t...

View gets resized when using PartialCurl model transition.

Ok so I'm trying to recreate the partial fold animation like in the standard google maps app on the iphone where the toolbar at the bottom stays where it is, but the views above it curl and such. Here are some images: http://i.imgur.com/MjTx6.png (Wont let me put in hyperlinks for some reason <_<) http: // i.imgur.com/lc9ig.png http: /...

Multiple XIB/NIB files: IBOutlets not connecting

I have two UIViewController subclasses, A and B. In A.xib I have embedded a "B" UIViewController, set its NIB Name as "B", and attached its delegate and IBActions to the File's Owner, which is an A. In B.xib I have defined a view and attached its various IBOutlets to the File's Owner, which is a B. In the graphic you can see the two X...

Can I use UITabBarController as a simple viewController switcher?

Hi, I'm creating an iPad app based on a UINavigationController (with the bar hidden) so I can push and pop other viewControllers for navigation around the app. However, I am now wanting to add a section in which there are two viewControllers that I want to be able to switch between, so in other words they are side-by-side, rather than h...

how to find out current uiviewcontroller

Hi, In my application, I am having following UIViewControllers; HomeViewController FirstViewController SecondViewController, and etc... My question is; How can I find out whether SecondViewController is a current UIViewController or not ? ...

A Difference on ViewControllers and Nibs

I have been doing a lot of work on UIViewControlers and Nibs and notice there are two ways of doing it. @class AController : UIViewController [[AController alloc] initWithNibName:<name of nib> bundle:nil]; and the other way is that you make the File Owner the the UIViewController and link the View. All you have then do is [[AControl...

UIViewController IBOutlets are nil

I have an UIViewController class with two labels and a UIImageView set as IBOutlets, and I have this outlets connected in my xib, I have double checked they are connected properly, however when I check the their value in the debugger they are 0x0 so I cant change them programatically. Any ideas on what I might be doing wrong. Heres the ...

iPad ViewController configuration for document-based app

Hello, I was wondering what would be the best configuration of view controllers and views for an app that I’ve been planning out. Conceptually, the way I would like to lay out the app is with an initial loader/browser view, likely with document thumbnails. When a user chooses to open one, a new view comes up that forms the main document...

How can I load firmware dependent NIBS ?

Here is my question : I have an app running smoothly on iOS 3.0 I've been working a long time to port it to 4.0 and to include the new features. I added iAds using Interface Builder. I know that I have to define it programmatically to still support 3.0 devices. I weak linked the framework. But the app crashes when loading the NIB. I...

iPhone: Main Menu to Navigation Controller And A Table View

Hi Folks, I have two applications that I would like to build into one. The first is a simple table view that drills down to a detail view when a cell is clicked. It works fine. It has a TableView and a Navigation Controller, so I can go back and forth between cells. The problem is I don't want an App that shows a table straight away! I ...

UITabBarController - detect when tab is UNselected

If you have 4 tabs, what is the best way to inform one of the view controllers that it has been "deselected". In other words, that another tab was selected? I can't just use viewDidDisappear, because that may happen anyway. Is there another way for a view controller to know that it is no longer the active tab? The TabBar delegate (didS...