ios
UIButton*SignBtn = [UIButton buttonWithType:UIButtonTypeCustom];
SignBtn.frame = CGRectMake(5, 10, 30, 20);
[SignBtn setBackgroundImage:[UIImage imageNamed:@"Sign_btn"] forState:UIControlStateNormal];
self.navigationItem.rightBarButtonItem = [[UIBarButtonItem alloc]initWithCustomView:SignBtn];