반응형
NSMutableArray *toolbarButtons = [self.toolbarItems mutableCopy];
// 툴바 버튼 숨기기.
[toolbarButtons removeObject:self.bbi_cancel];
[self setToolbarItems:toolbarButtons animated:YES];
// 툴바 버튼 보이기.
if (![toolbarButtons containsObject:self.bbi_cancel])
{
[toolbarButtons addObject:self.bbi_cancel];
[self setToolbarItems:toolbarButtons animated:YES];
}
반응형
'IPHONE' 카테고리의 다른 글
UIScrollView 에 놓은 UIPageControl 에 스크롤시 현재 페이지 표시하기. (0) | 2014.03.05 |
---|---|
테이블뷰 위에 검색창 붙이는 방법 (0) | 2014.03.05 |
NSUserDefaults 사용하기. (0) | 2014.02.18 |
배열 정렬하기. (0) | 2014.02.17 |
스타일 적용하기 예제. (0) | 2014.02.14 |