i got the following code:
- (id)init {
if (self = [super init]) {
self.title = @\"please wait\";
UIBarButtonItem *favorite = [[UIBarButtonItem
Why not try UI7Kit? Works well for me, easy to use.
UIImage *img = [UIImage imageNamed:@"white_star.png"];
CGSize itemSize = CGSizeMake(20, 20);
UIGraphicsBeginImageContext(itemSize);
CGRect imageRect = CGRectMake(0.0, 0.0, itemSize.width, itemSize.height);
[img drawInRect:imageRect];
img = UIGraphicsGetImageFromCurrentImageContext();
UIGraphicsEndImageContext();
UIBarButtonItem *barButton = [[UIBarButtonItem alloc ] initWithImage:img style:UIBarButtonSystemItemAdd target:self action:@selector(favoriteButtonClicked)];
barButton.style = UIBarButtonItemStyleBordered;