摘要: label.font=[UIFontfontWithName:@"Arial-BoldItalicMT"size:24];字体名如下:Font Family: American TypewriterFont: AmericanTypewriterFont: AmericanTypewriter-Bo... 阅读全文
posted @ 2016-01-18 16:59 懒懒初阳 阅读(2540) 评论(0) 推荐(1)
摘要: //添加滤镜- (UIImage *)addFilter:(NSString *)sender{ CIContext *context = [CIContext contextWithOptions:nil]; CIImage *image = [CIImage imageWithContent... 阅读全文
posted @ 2016-01-12 16:04 懒懒初阳 阅读(264) 评论(0) 推荐(0)
摘要: 1 -(NSString *) FormartTime:(NSDate*) compareDate 2 { 3 if( compareDate == nil ) return @""; 4 5 NSTimeInterval timeInterval = [compareDate timeIntervalSinceNow]; 6 timeInterv... 阅读全文
posted @ 2016-01-12 10:30 懒懒初阳 阅读(416) 评论(0) 推荐(0)
摘要: 在项目开发中,我们经常会遇到在这样一种情形:在一个UILabel 使用不同的颜色或不同的字体来体现字符串,在iOS 6 以后我们可以很轻松的实现这一点,官方的API 为我们提供了UILabel类的attributedText, 使用不同颜色和不同字体的字符串,我们可以使用NSAttributedTe... 阅读全文
posted @ 2016-01-12 10:26 懒懒初阳 阅读(258) 评论(0) 推荐(0)
摘要: 初始化部分:UICollectionViewFlowLayout *flowLayout= [[UICollectionViewFlowLayout alloc]init];self.myCollectionView = [[UICollectionView alloc] initWithFrame... 阅读全文
posted @ 2016-01-05 10:31 懒懒初阳 阅读(246) 评论(0) 推荐(0)
摘要: 状态栏的字体为黑色:UIStatusBarStyleDefault状态栏的字体为白色:UIStatusBarStyleLightContent一、在info.plist中,将View controller-based status bar appearance设为NO状态栏字体的颜色只由下面的属性设... 阅读全文
posted @ 2015-12-30 09:56 懒懒初阳 阅读(175) 评论(0) 推荐(0)
摘要: 阅读全文
posted @ 2015-12-28 16:01 懒懒初阳 阅读(147) 评论(0) 推荐(0)
摘要: 一、键盘风格 UIKit框架支持8种风格键盘。C代码 typedefenum{UIKeyboardTypeDefault,//默认键盘:支持所有字符UIKeyboardTypeASCIICapable,//支持ASCII的默认键盘UIKeyboardTypeNumbersAndPunctuation... 阅读全文
posted @ 2015-12-28 15:57 懒懒初阳 阅读(242) 评论(0) 推荐(0)
摘要: 方法1:使用NSTimer来实现 主要使用的是NSTimer的scheduledTimerWithTimeInterval方法来每1秒执行一次timeFireMethod函数,timeFireMethod进行倒计时的一些操作,完成时把timer给invalidate掉就ok了,代码如下:[cp... 阅读全文
posted @ 2015-12-06 14:11 懒懒初阳 阅读(322) 评论(0) 推荐(0)
摘要: 30个真棒的(免费iPhone,iPad IOS)的GUI 界面设计元素模板 做iphone开发的福音创造力是指任何一种演示设计i的能力。无论是一个标志,旗帜,广告或一个完整的设计,能够注入的创造力不仅看出设计者表达的信息,也对观众留下坚实的印象。良好的设计是不容易的事情,创造,它往往是一个非常具有... 阅读全文
posted @ 2015-11-27 11:30 懒懒初阳 阅读(540) 评论(0) 推荐(0)