Create UIPageControl to hold icons
I want to create an application with landing view开发者_开发技巧 that shows a list of icons, each will push a new view to the navController, something like Facebook iPhone app! Is there something that i can use, or should I build it myself? And where can i find samples that shows how to do that? When user hold her finger on one icon, all icons start to dance/move indicating edit mode which allow the user to rearrange icons, is this also something i need to build?
You just need to create an UINavigationConytoller based application.Whwn a user holds a finger on icon,just push the view to desired NavigationController. You can create the icons as UIButton.
Sample Code:
//h file
@interface RecipesMenuViewController : UIViewController {
}
- (IBAction)getStateWiseList:(id)sender;
@end
//m file
#import "RecipesMenuViewController.h"
#import "MenuLevel1ViewController.h"
@implementation RecipesMenuViewController
- (IBAction)getStateWiseList:(id)sender {
[self.navigationController pushViewController:[[MenuLevel1ViewController alloc] initWithID:1] animated:YES];
}
@end
Hope this helps.
精彩评论