Quantcast
Channel: CoderzHeaven
Viewing all articles
Browse latest Browse all 526

How to add info button to right side or leftside of navigationbar in iPhone?

$
0
0

    UIButton* infoButton = [UIButton buttonWithType:UIButtonTypeInfoLight];
    [infoButton addTarget:self action:@selector(showInfoView:) forControlEvents:UIControlEventTouchUpInside];
    self.navigationItem.rightBarButtonItem = [[UIBarButtonItem alloc] initWithCustomView:infoButton];

Adding button action function.

- (IBAction)showInfoView:(id)sender {
    
}

Viewing all articles
Browse latest Browse all 526

Trending Articles