51CTO博客开发用心生活
在声明一个变量的时候,经常有使用下面的三种形式: @interface testView : UIView &n
项目中有一个需求是在App中播放用户iPod中的音乐,实现思路如下:1、获取iPod中的音乐对象 NSNumber *typeNum = [NSNumber numberWithInteger:MPMediaTypeAnyAudio]; MPMediaPropertyPredicate *predicate = [MPMediaPropert
1、iOS7.0新增加的icon尺寸76 x 76:Size for iPad 2 and iPad mini (standard resolution)120 x 120:Size for iPhone and iPod touch (high resolution)152 x 152: Size for iPad and iPad mini (high resolution)参考:
声明一个类(SKYCommon)为单例,通常的做法是:1、声明一个全局的静态对象:static SKYCommon *skyObject;2、实现两个类方法:+ (SKYCommon *)sharedCommon { @synchronized(self) { if(!skyObject) { skyObject = [[SK
NSDate *m_date = [[NSDate alloc] init]; dispatch_async(dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_DEFAULT, 0), ^{ while (YES) { if ([m_date timeIntervalSinceNow] < -5.0)
m_manageButton.layer.cornerRadius = 5; m_manageButton.layer.masksToBounds = YES; [m_manageButtonsetTitle:@"添加和\n 管理" forState:UIControlStateNormal]; [m_manageButtonsetTitleColor:SKYTEXTGRAYforStat
好记性不如烂笔头!
Copyright © 2005-2023 51CTO.COM 版权所有 京ICP证060544号