- (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
本章实现效果: Untitled.gif 前言: 项目中很多需求是要求自定义标题栏居中的,本人最近就遇到这中需求,如果用系统自带的titleView设置的话,不会居中,经过尝试,发现titleview的起点位置和尺寸依赖于leftBarButtonItem和rightBarButtonItem的位置 ...
分类:
移动开发 时间:
2017-06-20 14:48:44
阅读次数:
214
普通生成 示例代码: //这里实现普通生成图片的方法 - (void)drawRect:(CGRect)rect { CGRect cxRect = CGRectMake(0, 0, 100, 100); UIGraphicsBeginImageContextWithOptions(cxRect.s ...
分类:
移动开发 时间:
2017-06-18 22:44:48
阅读次数:
161
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推送通知 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
- (void)tableView:(UITableView *)tableView willDisplayHeaderView:(UIView *)view forSection:(NSInteger)section { view.tintColor = [UIColor clearColor]; ...
分类:
其他好文 时间:
2017-06-06 14:26:21
阅读次数:
246
import UIKit class ViewController3: UIViewController { override func viewDidLoad() { super.viewDidLoad() self.view.backgroundColor=UIColor.whiteColor( ...
分类:
编程语言 时间:
2017-06-05 11:33:46
阅读次数:
194
UI给开发的效果图非常多时候标注着十六进制的Color,而程序中用到的往往是UIColor能够用例如以下方法去转换:(UIColor *)RGBColorFromHexString:(NSString *)color alpha:(float)alpha { //color的值相似#fffeee,a ...
分类:
移动开发 时间:
2017-06-04 22:42:16
阅读次数:
173
self.backgroundColor = [[UIColor blackColor]colorWithAlphaComponent:0.8f]; ...
分类:
移动开发 时间:
2017-05-26 10:57:54
阅读次数:
138