iOS 可拖拽菜单:OECentreMenu

byb1234 9年前

OECentreMenu 是一个可在屏幕中心拖拽动画菜单的简单解决方案。

UIButton *button1 = [[UIButton alloc] init];  [button1 setBackgroundImage:[UIImage imageNamed:@"quaver.png"] forState:UIControlStateNormal];  [button1 addTarget:self action:@selector(buttonPressed) forControlEvents:UIControlEventTouchUpInside];  button1.backgroundColor = [UIColor redColor];          . . .    UIButton *button6 = [[UIButton alloc] init];  [button6 setBackgroundImage:[UIImage imageNamed:@"quaver.png"] forState:UIControlStateNormal];  [button6 addTarget:self action:@selector(buttonPressed) forControlEvents:UIControlEventTouchUpInside];  button6.backgroundColor = [UIColor yellowColor];    NSArray *myButtons = @[button1, button2, button3, button4, button5, button6];    OECentreMenu *menu = [[OECentreMenu alloc] initInViewController:self withButtons:buttons thatHasTabBar:YES];    // Alternatively the line below can be used to specify the vertical offset of the Menu  //OECentreMenu *menu = [[OECentreMenu alloc] initInViewController:self withButtons:buttons andVerticalOffset:90];

iOS 可拖拽菜单:OECentreMenu

项目主页:http://www.open-open.com/lib/view/home/1429106660471