uiviewcontroller

UIViewController parentViewController access properties

I know this question has been asked several times and I did read existing posts on this topic but I still need help. I have 2 UIViewControllers - Parent and Child. I display the child view using the presentModalViewController as below: ChildController *child = [[ChildController alloc[ initWithNibName:@"ChildView" bundle:nil]; [self pr...

Design UI programmaticly

Hi there I'm trying desperately to design my UI programmatically. But I think I'm in trouble to understand the concept. Basically I want a UI which contains different UIViews and a UITableView. But now I'm stuck with the UITableView... So my "main view" which should contain all these views is called AddListViewController(it inherence ...

UIViewController does not auto rotate.

As the title says. My UIViewController will not rotate no matter what. When it loads shouldAutorotateToInterfaceOrientation is being called but after that it doesnt. UPDATE 1: It's a really really wierd problem. At least for me. And i ll try to explain everything. It's a navigation based app. Every controller has - (BOOL)shouldAutoro...

removing Views from SubView

Hi, I have a App that uses the In App feature. -(void) completeTransaction: (skPaymenttransaction *)transaction{ } When the above method gets called i want to remove all subviews and go back to my main menu window (the first view in my App). Can anyone suggest to cleanest and best way to do this? Cheers ...

viewWillAppear not called in UITableViewController ?

I have a couple of UITableViewController classes and I just noticed that these methods aren't being called: -(void)viewWillAppear:(BOOL)animated; -(void)viewDidAppear:(BOOL)animated; I read in http://discussions.apple.com/thread.jspa?threadID=1529769&tstart=0 that I would have to call those methods myself when pushing view control...

UIView transitions present modal view at the bottom

I need to display a UIView/UIViewController when the user taps a button and the modal view should appear just like how the key board appears from the bottom bar when you edit text in a UITextField. Using the following code, I get to show it as a pop up. [self presentModalViewController:child animated:YES]; How to make it appear like ...

IUNavigationController loading more viewControllers

Not a Noob as yesterday, but still green. I have a UITabbarcontoller and a IUNavigationController they seem to work fine. I have a UITableviewController to which I loads my NSMutable array. The user clicks a cell and didSelectRowAtIndexPath xib is loaded onto the stack. I have a 'Learn More' button on the current xib. I've tried a few...

iphone assign image to viewcontroller problem

Hi i am retrieving image to my second view using URL,problem is i cannot able to assign the image to the UIImageView object this code working fine NSData imageData = [NSData dataWithContentsOfURL:[NSURL URLWithString:@"http://dblog.com.au/wp-content/galah.jpg"]]; UIImage animalImage = [[UIImage alloc] initWithData:imageData]; problem...

Multiple view controllers on screen at once?

Hello! I am trying to wrap my head around controllers in Cocoa Touch. The main problem is that I would like to have more then one controller “on screen” at once – I want to have a large view (with controller A) composed of smaller views controlled by their own controllers (say B). I’d like to have it this way because the division makes t...

How do I add a fullscreen view in Cocoa touch?

Hello :) Inside the titleView of a UINavigationBar, there is a button. Clicking it should slide in a view from the top of the screen. Where do I have to place the view so it's displayed fullscreen and not only inside the current UIViewController's contentView? Is there a function for adding fullscreen views? ...

How to manage a complex subview on the iPhone

Hi all, I have a view controller that manage a view with a table view, a toolbar, a navigation bar and so on. Inside the toolbar, I have a GPS signal indicator. It is composed of a number of bars with different heights, different colors, and so on depending on signal quality. The GPS signal indicator is a complex (sub)view that I want...

View Controller's viewDidLoad method finishing before applicationDidFinishLaunching

I'm creating a fairly complex iPhone app using Core Data. Up until now, things have been working fine. As the app has been getting more complex, however, a new problem has come up: the first view controller is finishing its viewDidLoad method before the AppDelegate gets even halfway through its applicationDidFinishLaunching method. The...

Can a ViewController (AdMob AdViewController) control a view that is a subview of the controlled view of another UIViewController?

I am trying to use the IB AdMob ad in my app. I followed the instructions provided but I am getting an EXC_BAD_ACCESS from the AdMob class. I am trying to figure out what the problem is. Anyway, my question is Can a ViewController (AdMob AdViewController) control a view that is a subview of the controlled view of another UIViewControll...

UIAlertView clickedButtonAtIndex with presentModalViewController

Hi, I am trying to call a view via presentModalViewController from a UIAlertView button. The code is below, the NSlog is displayed in the console so I know that code execution is indeed reaching that point. Also, there are no errors or anything displayed: - (void)alertView:(UIAlertView *)alertView clickedButtonAtIndex:(NSInteger)button...

How to reference object values from subview?

I have a UIViewController with a XIB and want to add programmatically another subview. During the initialization of the subview (initWithFrame) i want to set some attributes to values according to attributes that belong to another Object which holds data (actually a ViewControllers Child-Object, but not a view). -(id)initWithFrame:(CGR...

Distinct Value Array for View Controller Index Using Core Data

Hi, I'm trying to create an index representing the first letter value of each record in a Core Data store to be used in a table view controller. I'm using a snippet of the code from Apple's documentation. I would simply like to produce an array or dictionary of distinct values as the result. My store already has the character defined wi...

Method called when dismissing a UIViewController?

Is there a general best-practices way of being notified when the current view controller is being dismissed (either popped or dismissModalDialog'd)? I can't use -viewWillDisappear:, since that also gets called when another viewController is pushed atop the current one. ...

iPhone: UIAlert dialog Appears 3 Times for Every Call

Hello community, I have a UIAlert that pops up 3 times every time it is called. It appears and then disappears before I can click on it. Could it be that the viewDidLoad itself is being called 3 times? I implemented an UIAlert in the viewDidLoad of my app: UIAlertView *alert = [[UIAlertView alloc] initWithTitle:title message:alertMess...

UIView transition and animation

I understand modal views cover the entire screen. But I really want a view that covers only half the screen just like the keyboard. So, please tell me why this doesn't work MyController *controller = [[MyController alloc] initWithNibName:@"MyView" bundle:nil]; CGRect frame = CGRectMake(0,44,768,264); [controller view].frame = frame; con...

I want to change the view controller when a button it's pressed iphone

Hi, I have a table view controller with custom cells. In those cells i added a button for each one of the cells. What i would like it's that when I press that button it display a new view with more information about that cell, different of the view that i get from didSelectRowAtIndexPath. I know it's now a hard question. I've seen tha...