Or you can click the link below to proceed:
Creating Toolbar in iphone sdk
Here is how you can create a toolbar at the bottom of your screen. (with code taken from the UICatalog sample)UIToolbar *bar = [UIToolbar new]; bar.barStyle = UIBarStyleBlackOpaque; // size up the toolbar and set its frame [bar sizeToFit]; CGFloat toolbarHeight = [bar frame].size.height; CGRect mainViewBounds = self.view.bounds; //view of your viewcontroller [bar setFrame:CGRectMake(CGRectGetMinX(mainViewBounds), CGRectGetMinY(mainViewBounds) + CGRectGetHeight(mainViewBounds), CGRectGetWidth(mainViewBounds), toolbarHeight)]; //add button // create a bordered style button with custom image UIImage *im = [UIImage imageNamed:@"selection.png"]; UIBarButtonItem *selectItem = [[UIBarButtonItem alloc] initWithImage:im style:UIBarButtonItemStylePlain
Want to be redirected immediately?
Register yourself at Ping.sg to get rid of this page and also to get your read counted as Pong.