/ Published in: Objective C
                    
                                        
                            
                                Expand |
                                Embed | Plain Text
                            
                        
                        Copy this code and paste it in your HTML
UIButton *customView = [[UIButton alloc] initWithFrame:CGRectMake(0, 0, 5, 5)];
[customView setBackgroundImage:[UIImage imageNamed:@"hoge.png"] forState:UIControlStateNormal];
[customView addTarget:self action:@selector(hogeAction) forControlEvents:UIControlEventTouchUpInside];
UIBarButtonItem* buttonItem = [[UIBarButtonItem alloc] initWithCustomView:customView];
self.navigationItem.rightBarButtonItem = buttonItem;
Comments
 Subscribe to comments
                    Subscribe to comments
                
                