阅读背景:

IOS开展:导航中添加多个button并加入左侧logo

来源:互联网 

添加多个button,同样只能加入一个
 UIBarButtonItem *anotherButton = [[UIBarButtonItem alloc] initWithTitle:NSLocalizedString(@"register", nil) style:UIBarButtonItemStylePlain target:self action:@selector(registerClick:)];
            UIBarButtonItem *anotherButton2 = [[UIBarButtonItem alloc] initWithTitle:NSLocalizedString(@"login", nil) style:UIBarButtonItemStylePlain target:self action:@selector(loginClick:)];
            [self.navigationItem setRightBarButtonItems:[NSArray arrayWithObjects: anotherButton,anotherButton2,nil]]; UIBarButtonItem *anot



你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: