码迷,mamicode.com
首页 >  
搜索关键字:uicolor uiimage    ( 1989个结果
Swift开发
1. 模糊效果 iconImageView.image = UIImage(named: "1.png") //效果类实例 let blurEffect = UIBlurEffect(style: .light) //效果视图类的实例 let visualEffectView = UIVisualE ...
分类:编程语言   时间:2017-04-02 18:40:06    阅读次数:170
IOS 搜索条制作(UITextField)
UITextField *searchBar=[[UITextField alloc]init]; searchBar.width=300; searchBar.height=30; //设置背景 searchBar.background=[UIImage resizedImage:@"search... ...
分类:移动开发   时间:2017-03-29 22:30:49    阅读次数:205
IOS 拉伸图片(封装)
/** * 根据图片名返回一张能够自由拉伸的图片 */ +(UIImage *)resizedImage:(NSString *)name { UIImage *image=[UIImage imageWithName:name]; return [image stretchableImageWit... ...
分类:移动开发   时间:2017-03-29 22:30:07    阅读次数:213
属性字符串的一些使用
1.了解NSAttributedString类 NSDictionary *attributes = @{NSForegroundColorAttributeName: [UIColor redColor],NSFontAttributeName:[UIFont fontWithName:@"Zap ...
分类:其他好文   时间:2017-03-27 15:33:36    阅读次数:140
ios UINavigationController 导航栏
1.关于导航栏左右两边的按钮 2.修改标题 //设置导航控制器标题的颜色和字体大小等 NSDictionary *attributes = [NSDictionary dictionaryWithObjectsAndKeys: [UIColor whiteColor],NSForegroundCol ...
分类:移动开发   时间:2017-03-27 10:46:18    阅读次数:496
UITableViewCell分隔线
// cell默认分隔线左边有间距,把left设为0就没了 tbv.separatorInset = UIEdgeInsets(top: 0, left: 0, bottom: 0, right: 0) // 设置cell分隔线颜色 tbv.separatorColor = UIColor.red ...
分类:其他好文   时间:2017-03-24 17:39:10    阅读次数:148
快速上手Runtime(三)之方法交换
开发过程中,我们经常会用到系统类,而它提供的方法又不能完全满足我们开发的需要,那么在此时,我们需要为系统自带的方法扩展一些功能,而且还要保证原有的功能可正常使用.假设咱们现在有这么一个需求,我们在调用系统的[UIImage imageNamed:@"runtime"];的时候,我们并不能判断有没有加 ...
分类:其他好文   时间:2017-03-23 17:21:55    阅读次数:172
UIWebView添加手势VS设置背景色
一.疑问?? 最近在使用UIWebView,发现好多小问题,现整理如下: 1.使用xib加载UIWebView控件时可以设置BackGroundColor但是无效 2.使用纯代码设置self.webView.backgroundColor = [UIColor redColor];无效 3.代码可实 ...
分类:Web程序   时间:2017-03-22 18:05:47    阅读次数:203
一些实用小方法
获取图片的大小的方法 UIImage * image = [UIImage imageNamed:@"1.png"];CGSize * size = (__bridge CGSize *)NSStringFromCGSize(image.size); NSLog(@“%@",size); 解决 pu ...
分类:其他好文   时间:2017-03-22 16:07:16    阅读次数:190
IOS 图片剪切(封装数据)
封装 :生成头像(UIImage (NJ).h / .m @interface UIImage (NJ) /** * 生成头像 * * @param icon 头像图片名称 * @param border 头像边框大小 * @param color 头像边框的颜色 * * @return 生成好的头 ...
分类:移动开发   时间:2017-03-22 00:29:01    阅读次数:188
1989条   上一页 1 ... 23 24 25 26 27 ... 199 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!