在iPhone音乐应用中,右边的UIBarButtonItem
标题是“正在播放”(两行)。我想做类似的事情。我怎样才能使标题两行?如何使用换行符创建UIBarButtonItem标题?
UIBarButtonItem *nowPlayingButtonItem = [[UIBarButtonItem alloc] initWithTitle:NSLocalizedString(@"Now Playing", @"button in navigationbar right") style:UIBarButtonItemStyleBordered target:self action:@selector(showNowPalyView)];
你在代码中创建'UIBarButtonItem' ,还是在Storyboard/Interface Builder中? – lnafziger 2013-03-13 15:42:51