码迷,mamicode.com
首页 >  
搜索关键字:uicolor    ( 848个结果
隐藏电池栏,遮罩层
- (BOOL)prefersStatusBarHidden { return YES;//隐藏为YES,显示为NO } - (void)tapClick:(UITapGestureRecognizer *)sender { [self.imageView1 removeFromSuperview]... ...
分类:其他好文   时间:2017-06-27 18:46:52    阅读次数:148
随机颜色文件 用的时候直接推进去好方便
#import <UIKit/UIKit.h> @interface UIColor (RandomColor) //随机颜色 + (UIColor *)randomColor; @end #import "UIColor+RandomColor.h" @implementation UIColor ...
分类:其他好文   时间:2017-06-22 10:13:46    阅读次数:117
iOS - 设置导航栏之标题栏居中、标题栏的背景颜色
本章实现效果: Untitled.gif 前言: 项目中很多需求是要求自定义标题栏居中的,本人最近就遇到这中需求,如果用系统自带的titleView设置的话,不会居中,经过尝试,发现titleview的起点位置和尺寸依赖于leftBarButtonItem和rightBarButtonItem的位置 ...
分类:移动开发   时间:2017-06-20 14:48:44    阅读次数:214
IOS Quartz2D 通过UIColor生成图片
普通生成 示例代码: //这里实现普通生成图片的方法 - (void)drawRect:(CGRect)rect { CGRect cxRect = CGRectMake(0, 0, 100, 100); UIGraphicsBeginImageContextWithOptions(cxRect.s ...
分类:移动开发   时间:2017-06-18 22:44:48    阅读次数:161
iOS UIView设置圆角
UIView设置圆角 1、比较简单的情况,UIView四个角都是圆角: UIView *aView = [[UIView alloc] init]; aView.frame = CGRectMake(0, 0, 300, 200); aView.backgroundColor = [UIColor ...
分类:移动开发   时间:2017-06-12 19:53:28    阅读次数:202
iOS开发 - ANPs推送通知 标签: 推送通知ANPs远程推送、本地推送
iOS开发 - ANPs推送通知 iOS开发 - ANPs推送通知 标签: 推送通知ANPs远程推送本地推送 2015-05-03 14:12 3510人阅读 评论(0) 收藏 举报 标签: 推送通知ANPs远程推送本地推送 2015-05-03 14:12 3510人阅读 评论(0) 收藏 举报 ...
分类:移动开发   时间:2017-06-07 14:31:48    阅读次数:263
设置TableView section header的颜色
- (void)tableView:(UITableView *)tableView willDisplayHeaderView:(UIView *)view forSection:(NSInteger)section { view.tintColor = [UIColor clearColor]; ...
分类:其他好文   时间:2017-06-06 14:26:21    阅读次数:246
swift 动态设置UILabel的高度
import UIKit class ViewController3: UIViewController { override func viewDidLoad() { super.viewDidLoad() self.view.backgroundColor=UIColor.whiteColor( ...
分类:编程语言   时间:2017-06-05 11:33:46    阅读次数:194
IOS假设将一个十六进制的color转换成UIColor,非常有用
UI给开发的效果图非常多时候标注着十六进制的Color,而程序中用到的往往是UIColor能够用例如以下方法去转换:(UIColor *)RGBColorFromHexString:(NSString *)color alpha:(float)alpha { //color的值相似#fffeee,a ...
分类:移动开发   时间:2017-06-04 22:42:16    阅读次数:173
iOS 设置视图背景的透明度
self.backgroundColor = [[UIColor blackColor]colorWithAlphaComponent:0.8f]; ...
分类:移动开发   时间:2017-05-26 10:57:54    阅读次数:138
848条   上一页 1 ... 7 8 9 10 11 ... 85 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!