第一个控制器:-(void)barAction:(UIBarButtonItem*)sender{ NextViewController *next=[[NextViewController alloc]init]; //拿当前页面的值传到后一个页面 next.stringValue=self.rv...
分类:
移动开发 时间:
2015-07-24 12:17:58
阅读次数:
127
Mads Mobæk:给UINavigationBar添加按钮的示例代码
1
2
3
4
5
6
7
8
UIBarButtonItem *rightButton = [[UIBarButtonItem alloc] initWithTitle:@"Done"
style:UIBarButtonItemStyleDone target...
分类:
其他好文 时间:
2015-07-15 19:26:55
阅读次数:
199
//// AppDelegate.m// UI3_UIbarButtonItem//// Created by zhangxueming on 15/7/6.// Copyright (c) 2015年 zhangxueming. All rights reserved.//#import ...
分类:
其他好文 时间:
2015-07-11 16:17:39
阅读次数:
105
前一页建立跳转事件 // 添加左边导航栏按钮
UIBarButtonItem *leftButton = [[UIBarButtonItem alloc] initWithBarButtonSystemItem:UIBarButtonSystemItemAdd target:self action:@selector(leftButtonAction:)]; self.navig...
分类:
其他好文 时间:
2015-07-11 12:15:27
阅读次数:
117
自定义导航栏按钮:
1.自定义按钮(创建一个按钮)
2.自定义按钮图片(仅仅修改按钮背景图片)
3.修改右侧按钮同上,设置self.navigationItem.rightBarButtonItem即可...
分类:
其他好文 时间:
2015-07-10 11:27:14
阅读次数:
153
//给导航增加item
var rightItem = UIBarButtonItem(title: "First", style: UIBarButtonItemStyle.Plain, target: self, action: "fisrtItem:")
rightItem.title = "First"
self.navigationI...
分类:
编程语言 时间:
2015-07-09 19:57:47
阅读次数:
221
UIBarButtonItem *updateButton = [[UIBarButtonItem alloc] initWithTitle:@"修改" style:UIBarButtonItemStylePlain target:self action:@selector(updateInfo)]...
分类:
其他好文 时间:
2015-07-06 14:11:49
阅读次数:
109
@interface ViewController ()
@property (weak, nonatomic) IBOutlet UIBarButtonItem *backItem;
@property (weak, nonatomic) IBOutlet UIBarButtonItem *forwardItem;
@property(nonatomic,weak)UIWebView * ...
分类:
Web程序 时间:
2015-06-26 13:34:28
阅读次数:
164
修改导航栏上返回按钮上的字,例如把back修改为返回
注意:这个需要在跳转之前到视图控制器中写,而不是在跳转之后到控制器中写
UIBarButtonItem *backIetm = [[UIBarButtonItem
alloc]
init];
backIetm.title =
@"返回";
self.navigationItem.backBar...
分类:
其他好文 时间:
2015-06-23 11:57:31
阅读次数:
150
原文: http://blog.csdn.net/songrotek/article/details/8692866?utm_source=tuicool对于UIToolbar,UINavigationBar,UITabBar,UIBarButtonItem,UITabBarItem这几种控件的自定...
分类:
移动开发 时间:
2015-06-22 01:05:01
阅读次数:
248