首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 移动开发 > 移动开发 >

UINavigation常见用法跟导航控制栏的定制

2013-10-17 
UINavigation常见用法和导航控制栏的定制1.常用方法UIButton *button[[[UIButton alloc]initWithFrame:CG

UINavigation常见用法和导航控制栏的定制

1.常用方法

UIButton *button=[[[UIButton alloc]initWithFrame:CGRectMake(5, 5, 30, 30)] autorelease]; [button addTarget:self action:@selector(clickedRight) forControlEvents:UIControlEventTouchUpInside]; [button setBackgroundColor:[UIColor yellowColor]]; UIBarButtonItem *rightItem=[[UIBarButtonItem alloc] initWithCustomView:button]; self.navigationItem.rightBarButtonItem=rightItem;





热点排行