Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <pre><code> you have to create a view with as much button you required and have to add them on navigation button like following : UIView *parentView1 = [[UIView alloc] initWithFrame:CGRectMake(0, 0, 60, 44)]; UIButton *infoButton1 = [[UIButton alloc] initWithFrame:CGRectMake(0, 6, 30, 32)]; [infoButton1 setBackgroundImage:[UIImage imageNamed: @"navbtn.png"] forState:UIControlStateNormal]; [infoButton1 setTitle:@"Back" forState:UIControlStateNormal]; infoButton1.titleLabel.font = [UIFont systemFontOfSize:13.0f]; infoButton1.titleLabel.textColor = [UIColor whiteColor]; [infoButton1 addTarget:self action:@selector(backBarButtonClicked) forControlEvents:UIControlEventTouchUpInside]; [parentView1 addSubview:infoButton1]; [infoButton1 release]; UIButton *infoButton2 = [[UIButton alloc] initWithFrame:CGRectMake(30, 6, 30, 32)]; [infoButton2 setBackgroundImage:[UIImage imageNamed: @"navbtn.png"] forState:UIControlStateNormal]; [infoButton2 setTitle:@"Back" forState:UIControlStateNormal]; infoButton2.titleLabel.font = [UIFont systemFontOfSize:13.0f]; infoButton2.titleLabel.textColor = [UIColor whiteColor]; [infoButton2 addTarget:self action:@selector(backBarButtonClicked) forControlEvents:UIControlEventTouchUpInside]; [parentView1 addSubview:infoButton2]; [infoButton2 release]; UIBarButtonItem *customBarButtomItem1 = [[UIBarButtonItem alloc] initWithCustomView:parentView1]; [parentView1 release]; self.navigationItem.leftBarButtonItem = customBarButtomItem1; [customBarButtomItem1 release];`enter code here` </code></pre>
    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.
    3. VO
      singulars
      1. This table or related slice is empty.
    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