iPhone Programming: UITabBars- Making One

Опубликовано: 02 Октябрь 2024
на канале: MilmersXcode
1,574
26

In this tutorial I teach you how to add a basic tab bar to your app.

Main Code:

In app delegate.h add UITabBarDelegate at the end of @interface line.

Then add:
@property (nonatomic, retain) IBOutlet UITabBarController *tabBar;

Then in your appDelegate.m add the following in application: didFinishLaunching:

self.window.rootViewController = self.tabBar;

Don't forget:
@synthesize tabBar=_tabBar;
&
[_tabBar release];

Next Tutorial:    • UITabBars-Adding names, icons & views...  

Twitter:   / failcakeapps  
Apple Developer Center: http://developer.apple.com/devcenter/...
Website: http://failcake.webs.com/
Channel:    / milmersxcode