Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>I think i'm giving u my code this will solve ur problem ...</p> <pre><code>-(void) initializeNavigationalBar { self.navigationItem.title = @"What Ever"); self.navigationController.navigationBar.tintColor = [UIColor colorWithRed:(57/255) green:(57/255) blue:(57/255) alpha:1]; UIBarButtonItem *optionBtn; optionBtn = [[UIBarButtonItem alloc] initWithImage:[UIImage imageNamed:@"image1.png"] style:UIBarButtonItemStylePlain target:self action:@selector(LoadOption:)]; self.navigationItem.leftBarButtonItem = optionBtn; // create a toolbar to have two buttons in the right UIToolbar* tools = [[UIToolbar alloc] initWithFrame:CGRectMake(0, 0, 60, 44.01)]; // create the array to hold the buttons, which then gets added to the toolbar NSMutableArray* buttons = [[NSMutableArray alloc] initWithCapacity:2]; UIBarButtonItem *rightBtn = [[UIBarButtonItem alloc] initWithImage:[UIImage imageNamed:@"image2.png"] style:UIBarButtonItemStylePlain target:self action:@selector(decrement:)]; [buttons addObject:rightBtn]; [previousBtn release]; UIBarButtonItem *leftBtn = [[UIBarButtonItem alloc] initWithImage:[UIImage imageNamed:@"image3.png"] style:UIBarButtonItemStylePlain target:self action:@selector(increment:)]; [buttons addObject:leftBtn]; [nextBtn release]; [tools setItems:buttons animated:NO]; tools.tintColor = [UIColor colorWithRed:(57/255) green:(57/255) blue:(57/255) alpha:1]; [buttons release]; self.navigationItem.rightBarButtonItem = [[UIBarButtonItem alloc] initWithCustomView:tools]; [tools release]; </code></pre> <p>}</p> <p>Enjoy...</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload