uiviewcontroller

What is the name of the UIView used at the "home" screen of iPhone?

First of all, the question is very simple, but I have tried to look around on the Internet and I couldn't find a name for this. Several applications such as "Ping Lite" have used this view in their application. It allows you to have submodules/applications as icons and you can scroll the page around just like when you are at "home" scree...

Parent responds to child's touch

I have a UIScrollView with subclassed UIImageViews in it. When one of the imageviews are clicked, I'd like the parent UIView (contains the scrollview) to receive the event in its - (void)touchesEnded:(NSSet *)touches withEvent:(UIEvent *)event I can tell if the imageview was clicked by if(CGRectContainsPoint(myScrollView.frame, loc...

When I make a Multiselect Form Input Field, should I create a View Controller for this, or is a View just fine?

I'm struggling since a few hours with this design question. In Cocoa for example, a complicated Date Picker is just a View. But it HAS a lot of complicated logic and algorithms to enable picking dates. In this case, I want to create a form element component for multi-selection of objects (i.e. when defining a relationship Users 1:n Pho...

Weird Touch Point value returned when used with scroll view controller

My application attaches a list of UIView controllers to a scrollview controller. As a part of requirements, it is needed to make some of the elements in the individual view controllers clickable. But, if I use a touch point, I get weird cooridinate values like (0,12567234). Is there a way to obtain the actual touch point value? My code l...

UIView autoresizingmask not working for me

Hi, I have my app set up so that auto-rotate works. Things like tableviewcontrollers and tabbarcontrollers automatically resize them selves without the need for me to write any code. However I need my webview etc. to resize when the device is turned to landscape. I set: webView.autoresizingMask = UIViewAutoresizingFlexibleWidth; ...

How do I put viewController's into a UIScrollView

I want to initialize 5 viewController's that I want to be able to flick between in a UIScrollView, when my app loads. ...

how to create navigation controller push effect using core animation?

I Am creating an application and i want to achieve push effect but without using navigation controller.Does someone knows a core animation source code to achieve this? I have a view hierarchy like this.A main controller which has an header image with 4 buttons on it.I mean it will be displayed all the time whatever view in front of scree...

UINavigationController setViewController:animated: navigation bar difficulties

I'm having an incredibly frustrating problem that appears to be a bug, but I have a very hard time believing no one else has come across this. My application's root view controller is a UITabBarController, where each tab is a UINavigationController. Everything works great. Now I've come to a place where I want to edit the stack, so I re...

Can you swap the NIB file for a UIViewController that's already on-screen?

For instance: Create a new UIVC using initWithNibName, using "nib-v1" Display it, e.g. using [(UINavigationController) nav pushViewController: myVC] Change the NIB that myVC is using to "nib-v2" So far as I can see, this is the "correct" approach to app-design for a lot of apps, when paging through information where you need two slig...

dismissModalViewControllerAnimated doesn't always work?

Hi, What prevents a modal view controller from being dismissed? I've found dismissModalViewControllerAnimated doesn't always work? For example this won't work: SettingsViewController* settings = [[SettingsViewController alloc] init]; UINavigationController *settingsNav = [[UINavigationController alloc] initWithRootViewController:sett...

Loading a Welcome Screen(Splash Screen) before TabBarController.

Hi, In my TabBar based iPhone application, i would like to display a full screen welcome page (with some logs) before the actual application loads, How can i load a UIView from xib file as the welcome screen and then from there i can load my TabBar based application. Thanks in advance, ...

Why is my code to change a UIViewController's View to a UIScrollView not working

my code inside of the applicationDidFinishLaunching method is self.view = UIScrollView Why is this not working? ...

How Do I (Re)Use the Same Nib in Multiple View Controllers

Okay I just typed this whole question out and then managed to delete it. Sigh. Anyway, standard disclosure that I have searched everywhere and banged my head on the keyboard and can't figure this out. I'm building a basic app based on the utility application template (with a MainViewController and FlipsideViewController). Side note: I s...

Issue with view controllers - Prior controller (images/content) is still present (Its not *gone*/dealloc'd/released)

So, I started typically by init the controller from the nib and popping it onto the view stack. But the problem is that the first controller isn't really gone - its still around. So, we started down the path of this: Starting w/the appDelegate and loading the RootViewController: mRootController = [[RootViewController alloc] initWith...

REALLY simple question about UIViews

I am working on an app that has several different views, two of the which are DetailViewController.h&.m and AddViewController.h&.m. Neither of these particular view have IB xib files associated with them, they just have programmatically generated UITableViews. These views essentially are the same, the only difference, is that in the AddV...

self.view = aViewController.view vs [aViewController loadView] -

Hello everyone, I am trying to understand the behavior of view controllers when switching from one to another (displaying different views) A part form the addSubiew statements which seem to work, I can't find an explanation to what happens with the two statements: self.view = someViewController.view; [someViewController loadView]; In...

Problem with UIViewController orientation

I'm writing EAGLView - based application (game) and need to add UIViewController with UIWebView in landscape mode. What I done: Specified UIInterfaceOrientationLandscapeRight for UIInterfaceOrientation in the Info.plist Call [application setStatusBarOrientation:UIInterfaceOrientationLandscapeRight animated:NO] in the applicationDidFi...

UIView rotation, modal view lanscape and portrait, parent fails to render

Hi everyone, I've hit a bit of a roadblock with something that I hope that someone in here can help me out with. I'll describe the 'state of play' first, and then what the issue is, so here goes; I have a series of view controllers that are chained together with a Navigation Controller (this works just fine), All of these view control...

Order of UIViewController initialization and loading

I'm fairly new to UI programming on the Mac and iPhone, and I've run across something that somewhat puzzles me. A UIViewController has 3 methods that involve the initialization of it and its view: init (and init-like methods) loadView viewDidLoad (delegate method) I'd expect these to occur in the order above. First UIViewController ...

How can I call the parent TableView to reload

In this iphone app I'm trying to make it so that when you select a table cell it saves that action, pops the current view controller and calls the previous view controller (which is and always will be a TableView) to reload it's cells with new data. - (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexP...