Join the social network of Tech Nerds, increase skill rank, get work, manage projects...
 
  • Custom right bar button in UINavigationBar

    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 635
    Comment on it

    Hello friends,
    This code is to make custom right bar button in UINavigation bar.
    it helped me to make custom right bar button in UINavigation bar, Hope this will help you too.

    UIButton *homeButton = [UIButton buttonWithType:UIButtonTypeCustom];
        UIImage *homeBtnImage = [UIImage imageNamed:@"icon_1.png"]  ;
        [homeButton setImage:homeBtnImage forState:UIControlStateNormal];
        [homeButton addTarget:self action:@selector(setting) forControlEvents:UIControlEventTouchUpInside];
        homeButton.frame = CGRectMake(0, 0, 50, 30);
        UIBarButtonItem *homeBtn = [[UIBarButtonItem alloc] initWithCustomView:homeButton] ;
        self.navigationItem.rightBarButtonItem = homeBtn;
    

 0 Comment(s)

Sign In
                           OR                           
                           OR                           
Register

Sign up using

                           OR                           
Forgot Password
Fill out the form below and instructions to reset your password will be emailed to you:
Reset Password
Fill out the form below and reset your password: