uiviewcontroller

NavigationController not pushing view

I'm accessing a navigation controller from the app delegate and trying to push another view: [appDelegate.myNavigationController pushViewController:self.detailView animated:YES]; but nothing is happening. The above is in myTableView. The app is tabbar based. I added a NavigationController object under the TabbarController object ...

Retain/release pattern for UIPopoverController, UIActionSheet, and modal view controllers ?

I'm somewhat unclear on the object ownership patterns required for the following instances. When my UIViewController presents a popover controller, an action sheet, or another view controller as modal, am I required to hang onto a retained reference to that child controller until it's been dismissed? In other words, do the following lin...

shouldAutorotateToInterfaceOrientation won't work!

Hey. I've been writing my Universal application in portrait mode, and now after about 15 nib files, many many viewCotnrollers, i'd like to implement the shouldAutorotateToInterfaceOrientation and desing some screens in Landscape mode. adding : - (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientatio...

When to stop UIViewController from receiving delegate calls

In which UIViewController method should I set to nil all the occurrences of the view controller as a delegate? Is it viewDidUnload (too early?), dealloc (too late?) or something else? ...

iPhone SDK: how to switch from a login screen to a navigation interface?

I am beginning in iPhone development and have followed a few tutorials, but please indicate me if I'm going in the wrong direction. I have implemented my own UInViewController and a login screen view (with its xib). What I would like to do is that after clicking on the login button, it displays the RootViewController.xib, which includ...

iphone - UIViewController header view errors

Hi there, So to give a little background: I've an app that has a UITableViewController- (ContactDetailViewController) In this view at the top, I require a few labels and buttons, followed by a group style tableview. So I've created a nib file containing these elements. (ContactHeaderView.xib) Then in the viewDidLoad of ContactDetailVie...

What is the correct way of handling a reloaded view after it was dismissed?

Hi, I have the same problem as the guy here: http://stackoverflow.com/questions/2682844/uiimagepickercontroller-reloads-view-after-its-dismissed I have a UIView with a UIDatePicker within a Popover. When the Popover is dismissed and presented again, it sometimes resets the Picker in the view because hidden views are unloaded when a mem...

UIViewController is popped from view stack and NSURLConnection crashes the application

I am pushing a UIViewController onto a UINavigationController. This view controller immediately starts a download of an xml feed and then parses it. However, if you hit the back button before it is done downloading, and crashes with EXC_BAD_ACCESS. The line that is crashing it is in parserDidEndDocument and is this line: if (self.del...

How do you make a UIViewController background look like the background of a grouped UITableView?

Hi, sorry this is probably a dumb question, but I want to make the background of a normal UIViewController look like the gray, pinstriped background that of a grouped UITableView. Is this possible. Tell me if you need pictures, and I'll post some. Thanks for any help, ...

How can I make my tableview enter editing mode?

Hi, for some reason I can't get my tableview to enter editing mode. It's a little harder than it might seem because I'm using some open source code to make a calendar (iCal esque) with a tableview under it, and it's not quite as straightforward as just using a regular tableview. Basically, I have two classes. One (let's say Class A) is...

How to push text from one UITextfield to another UITextfield in the next View? And back!?

an Hi, I have an UITextField in one view, UITextField A in View A. And I have another in view B, UITextField B in View B. I use a Navigation Controller Bar to switch between the views. The UITextFields are properties and connected Outlets of both views A and B. On my view A there is an "Options"-button which pushes view B. So when you...

Is there ever a time when the touchesBegan, touchesMoved, and touchesEnded methods would be handled inside a UIViewController vs. UIView?

Is there ever a time when the touchesBegan, touchesMoved, and touchesEnded methods would be handled inside a UIViewController vs. UIView? I understand that they are typically used in a custom UIView but I am curious about this situation. Thanks ...

iPad/iPod: autoRotate resizes view in window

Developing an iPad interface, I have a scenario where I have a UIViewController which manages a view that gets placed directly as a subview of the main UIWindow. Before being placed in the UIWindow, that view gets resized to a non-standard size, let's say, 768x460, and positioned at the bottom of the screen. When rotating the device, t...

UIViewController not oreintating. Methods not called

Greetings, This question does seem to be an ongoing saga in the world of iphone SDK... so heres my contribution... Had two separate projects from the same template... one semi-works, the other not at all... Please let me explain my steps... used this basic GL ES template //iphonedevelopment.blogspot.com/2008/12/opengl-project-templa...

image is not getting loaded in view.

I have created 2 views named "FirstView" and "SecondView". SecondView's nib file has an UIImage view object as its IBOutlet. Now I am getting an UIImage object from some FirstViewController's method. Now I am setting the SecondViewController's imageView property with that image and then I am pushing my SecondView Controller's object in N...

iPhone: How to make a proxy controller that can select different views+controllers

I have an app with a TabBar. One of the TabBar-connected views is actually variable: Upon first opening of that view, it shall show a login dialog. If the user logs in, the login view is finished and the actual data view is shown. Later, if the user goes back to this tab, the data view shall appear right away, so no more login dialog ...

Splitting 512 square PVR files into 4 separate windows

To conserve space, we are attempting to split a pvr animation which is 512 pixels square into several smaller windows, or 2x256sq + 8x64sq along the bottom. This will mean that not as much space is wasted by views being off the screen, and therefore will take up less space to download. For an initial test, we're doing 4x256 to keep t...

How to modify partial, depending on controller it's viewed from?

I'm using a partial from my "messages" controller in my "tags" controller. The portion in question looks like this: <% unless message.tag_list.nil? || message.tag_list.empty? %> <% message.tags.each do |t| %> <div class="tag"><%= link_to t.name.titleize, tag_path(t) %></div> <% end %> <% end %> Is there a way to hide...

a Problem to pass a string between 2 view controller (iPhone)

my problem is quite simple, but as a beginner, I'm lost :D I have to view controller : view one call view 2 like this : self.FacebookTypeRequest =@"favoris"; FaceBookViewController *viewcontrol = [[FaceBookViewController alloc]initWithNibName:@"FaceBookViewController" bundle:[NSBundle mainBundle]]; viewcontrol.title = @"FaceBook"; ...

Hiding iPhone Status Bar pulls my tableViews up by 20px

When doing an asynchronous HTTP request, I hide the iPhone status bar and animate in my own custom UIViewController to show upload status. So instead of seeing signal strength, carrier, time and battery life, the user gets messages based on the progress of the HTTP request. My status bar is exactly 20px high, and fits nicely where the ...