1
我想添加UIBarButtonSystemItemCompose樣式的UIBarButtonItem。根據蘋果文檔,它應該顯示由方形輪廓組成的合成圖標。當我使用下面的代碼時,它只顯示一個紅色的按鈕。如果uibarbuttonitem放置在UIToolBar中而不是導航欄中,該圖標是否工作?ios UIBarButtonItem與UIBarButtonSystemItemCompose顯示紅色按鈕
self.navigationItem.rightBarButtonItem = [[[UIBarButtonItem alloc]
initWithTitle:nil
style:UIBarButtonSystemItemCompose
target:self
action:@selector(tweetPressed:)] autorelease];
謝謝,我很感激。這很好。我不知道我是如何錯過這一點的。 – Greg 2013-05-08 15:35:56