2012-05-11 17 views

答えて

0
あなたはNSMutableArrayのを構築し、その中で5 UIBarButtonItemを入れて、あなたが望むように彼らのプロパティを設定し、設定する必要があります

このようなToolBarItemsでこのArray:コースの

NSMutableArray *buttonsArray = [[NSMutableArray alloc] init]; 
UIBarButtonItem *myButton1=[[UIBarButtonItem alloc] style:UIBarButtonItemStylePlain target:self action:@selector(toolbarButtonPressed1:)]; 
[buttonsArray addObject:myButton1]; 
//here you set the other properties for your first button 

// and then you do the same for your other buttons 


[self setToolbarItems:buttonsArray animated:YES]; 

あなたは前に:)

ツールバーを宣言している必要があります
関連する問題