I have a navigation based application that have a uinavigataioncontroller containing uitableviewcontrollers. I want to add buttons to the UINavigationbar of the uinavigataioncontroller, usually I write code to add these buttons, something like this:
UIBarButtonItem *saveButton = [[UIBarButtonItem alloc] initWithBarButtonSystemItem:UIBar...
Hi there, I have a long View Controllers hierarchy;
in the first View Controller I use this code:
SecondViewController *svc = [[SecondViewController alloc] initWithNibName:@"SecondViewController" bundle:nil];
[self presentModalViewController:svc animated:YES];
[svc release];
In the second View Controller I use this code:
Third...
Hi I have a modalViewController that I am popping up using
[self presentModalViewController:myController animated:YES];
I have an event occurring within myController which I would like to result in another controller being pushed onto the navigation stack ON TOP OF myController (which again has been presented modally). How can I ...
There has been a lot of confusion and a set of corresponding set of questions here on SO how iPhone applications with proper handling for Landscape/Portrait mode autorotation can be implemented. It is especially difficult to implement such an application when starting in landscape mode is desired. The most common observed effect are scra...
Hi
I am trying to make FBConnect a bit easier to use different places in my app by wrapping it in a UIViewController that I can instantiate and use.
The meat of it looks like this:
@implementation ISFacebookViewController
@synthesize facebookSession;
@synthesize delegate;
- (void)viewDidLoad {
[super viewDidLoad];
[self.vie...
I'm having a hard time undestand a couple of the methods in UIViewController, but first I'll say what I think they are meant for (ignoring interface builder because I'm not using it):
-init: initialize non view-related stuff that won't need to be released in low memory situations (i.e. not objects or objects that can't be recreated ea...
I read somewhere that in a programmatically created view in a UIViewController, not using Interface Builder, -viewDidLoad and -viewDidUnload should not be used. Is this right? Why? Where would I release subviews that I have retaining properties of? Or should I just not use properties for them?
EDIT: Read my comments on Rob Napier's answ...
Hi all,
I don't understand what's wrong in my very simple application with device rotation :
I built my view with interface builder. (See screen capture here)
I specified <key>UIInterfaceOrientation</key><string>UIInterfaceOrientationLandscapeRight</string> in my info.plist file.
I had a (BOOL)shouldAutorotateToInterfaceOrientation:(U...
Hi,
I want to add a Control (UILabel / UIButton ) over a playing video ,
Can anyone please make a tutorial of adding a control on a playing video. Below is the link of the project. I am stuck how to connect the UIView object ( Overlay View ) in the connections inspector.
The code is copied properly.
Thanks
http://rapidshare.com/fil...
When my iPhone app receives a Memory warning the views of UIViewControllers that are not currently visible get unloaded. In one particular controller unloading the view and the outlets is rather fatal.
I'm looking for a way to prevent this view from being unloaded. I find this behavior rather stupid - I have a cache mechanism, so when ...
When I present a modal view in iPad, the view comes up from the bottom. But when I dismiss it, it slides of the screen to the left. I'm in landscape mode and using UIModalPresentationStylePageSheet. How do I make the dismiss animation slide the view back down?
...
I am trying to add a UITabBarController to a UIViewController:
[self.view addSubView:tabBarController.view];
I get a warning:
warning: 'UIView' may not respond to '-addSubView:'
How can I add a UITabBarController to my UIViewController?
...
I have a UIViewController that contains a UITabBarController which is loading a UITableView from another nib. The TableView view is set to files owner. How can I set the view property in the UIViewController that contains the UITabBarController?
...
my ViewController will start draw under of NavigationBar it will reduce ViewController to 436*320 pixels
how can i force it to draw in full screen 480*320
...
Hi
I wan' t to implement a custo initialization method for my UIViewController Subclass to "replace" the initWithNibName method.
This is the code:
- (id) initWithMessage:(NSString *)message
{
if ((self = [super initWithNibName:@"ToolTip" bundle:nil]))
{
label.text = message;
}
return self;
}
The Label isl...
I have a preference that, when set, forces my application to perform some synchronization on startup.
Can I use IB to display a different initial view based on this setting?
Is there a standard way to enable this behavior?
...
The problem:
Can this button be killed in a popover? I can remove the button in the ABPeoplePicker*Controller that appears when picking Contacts by editing the private VC's navigation item on the fly, but this one eludes me (no UINavigationControllerDelegate methods are called by the UIIPC).
...
Trying to wrap my head around the apple design scheme. I have a UIViewController and the corresponding XIB file that has my main screen in my application. I want to have a button on this XIB that displays another "form" (this is my disconnect) in the foreground where the user selects from a myriad of choices, then it hides that "form" ...
A completely ordinary setup: UIViewController where I push another UIVC:
BlahVc *blah = [[BlahVc alloc] initWithNibName:@"Blah" bundle:nil];
UINavigationController *nav = [[UINavigationController alloc] initWithRootViewController:blah];
blah.delegate = self;
[self presentModalViewController:nav animated:YES];
[nav release];
[blah releas...
Hello -
I need to create my own UIView class and it is not something I have had to do. I created the class, then laid out the small view in IB (it's just a few labels that i will later need to add data to ). but now im stuck on how to actually put an instance of it in my main view. Can someone point me in the direction of a good tutori...