![](https://img-blog.csdnimg.cn/20201014180756916.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
IOS笔记
无敌猪KK
这个作者很懒,什么都没留下…
展开
-
IOS笔记之 视图圆角
// viewTable.layer.cornerRadius=12.0f; // viewTable.layer.masksToBounds=NO; 基本操作代码如下: (如果设置masksToBounds为YES,那么阴影就会无效,下面代码可以解决这个问题。通过两个layer,一个实现阴影,一个圆角图片) CALayer *subl原创 2013-05-28 14:00:29 · 5047 阅读 · 1 评论 -
IOS笔记 搜索框
//搜索 UISearchBar *searchBarCustom = [[UISearchBaralloc] initWithFrame:CGRectMake(834,10 ,180,24)]; searchBarCustom.backgroundColor = [UIColorclearColor]; //修改搜索框背景 searchBarCusto原创 2013-05-28 13:53:43 · 1023 阅读 · 0 评论 -
IOS笔记之 控件 阴影
//设置控件的阴影 viewTableHead.layer.shadowPath =[UIBezierPathbezierPathWithRect:viewTableHead.layer.bounds].CGPath; viewTableHead.layer.shadowColor = [[UIColorgrayColor] CGColor];//阴影的颜色 vi原创 2013-05-28 13:49:42 · 3417 阅读 · 1 评论 -
IOS疯狂基础之 UITextView 自动调整高度
这里主要记录一下 textview 的自动调整高度的代码 方法二和三比较可以,方法一在中文后面不断输入数字时 会换行显示之后就算不准,输入一般的字符也是挺符合要求 - (void)textViewDidChange:(UITextView *)textView{ //方法一 if(textView.text.length > 20)//一行最多多少字节 {原创 2013-07-08 23:19:18 · 12226 阅读 · 0 评论 -
疯狂IOS基础之 生成 安装文件ipa
先将代码生成为Release目标(步骤:Xcode4中,Product->Edit Scheme... Destination改为iOS Device, Run xxx.app的build configuration改为release。 ),然后选中Product-》build for archiving,接下来右键xxx.app(xxx为工程名,show in finder)把这个.app(原创 2013-06-25 17:40:49 · 1005 阅读 · 0 评论 -
疯狂基础之 常用IOS 兼容性调整代码 4.3-5.0-6.0
UITableBar if ([[[UIDevice currentDevice] systemVersion] floatValue]5.0) { self.tabBarItem = [[UITabBarItem alloc] initWithTitle:@"群组" image:[UIImage imageNamed原创 2013-06-26 10:35:24 · 932 阅读 · 0 评论