ios - swipe gesture toolbar -
for app need recognize swipe gesture on toolbar change items on toolbar. can scroll through toolbar.
i want develop ios 5.0 or higher xcode 4.3
i found out how change viewcontroller using swipegestures.
can me?
-(void)swipedidhappen:(uiswipegesturerecognizer*)swipe { [self settoolbaritems:secondarray animated:yes]; } should fade out/in new items great. note toolbar must 1 supplied uinavigationcontroller. hook up, create 1 in code, , use [[self toolbar]addgesturerecognizer:gesture];. secondarray array of uibarbuttonitems, must made programmatically (as far know, cannot storyboard array, nor should you).
Comments
Post a Comment