/ Published in: Objective C
                    
                                        
                            
                                Expand |
                                Embed | Plain Text
                            
                        
                        Copy this code and paste it in your HTML
UIToolbar *toolbar = [[UIToolbar alloc] initWithFrame:CGRectMake(0, self.view.frame.size.height - 40, self.view.frame.size.width, 40)];
toolbar.barStyle = UIBarStyleBlack;
UIBarButtonItem *barBtnCancel = [[UIBarButtonItem alloc] initWithTitle:@"Cancel" style:UIBarButtonSystemItemAction target:nil action:nil];
UIBarButtonItem *barBtnRightButton = [[UIBarButtonItem alloc] initWithTitle:@"Some Text" style:UIBarButtonSystemItemCamera target:nil action:nil];
UIBarButtonItem *flexSpace = [[UIBarButtonItem alloc] initWithBarButtonSystemItem:UIBarButtonSystemItemFlexibleSpace target:nil action:nil];
toolbar.items = toolbarButtons;
[self.view addSubview:toolbar];
[toolbar release];
Comments
 Subscribe to comments
                    Subscribe to comments
                
                