会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
2014_4_30
大部分人努力程度之低,根本轮不到拼天赋。
博客园
首页
新随笔
联系
订阅
管理
上一页
1
···
6
7
8
9
10
2014年5月14日
设置navigationBar上面的item
摘要: //创建UIBarButtonItemUIBarButtonItem * rightButton = [[UIBarButtonItem alloc]initWithBarButtonSystemItem:UIBarButtonSystemItemAdd target:self action:nil...
阅读全文
posted @ 2014-05-14 16:26 2014_4_30
阅读(188)
评论(0)
推荐(0)
2014年5月7日
自定义的UITabbar上面的按钮的x坐标的计算方法
摘要: for (int i = 0; i < 4; i++) {//4是按钮的个数 NSString *backImage = backgroud[i]; NSString *heightImage = heightBackground[i]; ...
阅读全文
posted @ 2014-05-07 17:53 2014_4_30
阅读(204)
评论(0)
推荐(0)
UIToolbar自定义背景及按钮设置
摘要: //1.创建toolbar(MyToolbar继承UIToolbar) _myToolbar = [[MyToolbar alloc]initWithFrame:CGRectMake(kZero, kZero, kScreenW, kToolbarH)]; _myToolbar.ba...
阅读全文
posted @ 2014-05-07 11:48 2014_4_30
阅读(429)
评论(1)
推荐(0)
UITabBar实现自定义背景及UITabBarItem自定义图片和字体
摘要: UITabBarItem *firstItem = [[UITabBarItem alloc]initWithTitle:@"测试" image:nil tag:11]; //设置字体颜色(后面设置字体状态)(UITextAttributeTextColor已过时) [firstItem ...
阅读全文
posted @ 2014-05-07 11:26 2014_4_30
阅读(1023)
评论(0)
推荐(0)
2014年5月4日
IOS APP圆形图片的实现
摘要: 1 //设置圆形cornerRadius,是宽或高的一半 2 3 _imageView.layer.masksToBounds = YES; 4 5 6 7 CGFloat w = _imageView.frame.size.width / 2; 8 9 ...
阅读全文
posted @ 2014-05-04 06:54 2014_4_30
阅读(248)
评论(1)
推荐(0)
2014年5月1日
如果AlertView输入框为空,则禁止点击确定按钮
摘要: 1 //UIAlertView的代理方法(创建UIAlertView之后,copy此代理方法即可) 2 3 - (BOOL)alertViewShouldEnableFirstOtherButton:(UIAlertView *)alertView{ 4 5 //1.取出输入框中的文字 ...
阅读全文
posted @ 2014-05-01 18:57 2014_4_30
阅读(277)
评论(0)
推荐(0)
两种局部刷新UITableView的方法的使用条件
摘要: 1 - (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath{ 2 3 //1.取消选中这一行 4 5 [tableView deselectRowAtInde...
阅读全文
posted @ 2014-05-01 18:33 2014_4_30
阅读(287)
评论(0)
推荐(0)
实现toolbar透明的背景效果
摘要: 1 2 3 //MyToolbar.h 头文件 4 @interface MyToolbar : UIToolbar 5 6 @end 7 8 //MyToolbar.m 实现文件 9 #import "MyToolbar.h"10 11 @implementation MyToolba...
阅读全文
posted @ 2014-05-01 18:22 2014_4_30
阅读(746)
评论(0)
推荐(0)
代码创建FlexibleSpaceBarButton(弹性空白)
摘要: 1 //1.创建toolbar左边的按钮,调用initWithTitle方法进行初始化2 3 // UIBarButtonItem *extend = [[UIBarButtonItemalloc]initWithTitle:@"扩展"style:UIBarButtonItemStylePlai...
阅读全文
posted @ 2014-05-01 18:14 2014_4_30
阅读(635)
评论(0)
推荐(0)
2014年4月30日
今日开通此博客用以记录IOS学习
摘要: 1 今日开通此博客用以记录IOS学习
阅读全文
posted @ 2014-04-30 16:14 2014_4_30
阅读(86)
评论(0)
推荐(0)
上一页
1
···
6
7
8
9
10
公告