摘要:
假如确定路径下图片存在,或确定路径是在错误的路径下查找图片,解决办法是:Delete the png to "Copy Bundle Ressources" :参见:http://stackoverflow.com/questions/15069834/deleted-default-png-now-build-failed 阅读全文
摘要:
#ifdef __IPHONE_6_0 // iOS6 and later# define UITextAlignmentCenter NSTextAlignmentCenter# define UITextAlignmentLeft NSTextAlignmentLeft# define UITextAlignmentRight NSTextAlignmentRight# define UILineBreakModeTailTruncation NSLineBreakByTruncatingTail# define UILineBreakM... 阅读全文
摘要:
It's really just a cast, with some range checking:const long long expectedContentLength = response.expectedContentLength;NSUInteger expectedSize = 0;if (NSURLResponseUnknownLength == expectedContentLength) {assert(0 && "length not known - do something");return errval;}else if ( 阅读全文
摘要:
获取速度:[panGesture velocityInView:self.view] 阅读全文
摘要:
implict adj. 含蓄的;暗示的;盲从的直译就是,在c99里,含蓄的声明setxattr是不合法的解决方法是:#include 阅读全文
摘要:
NSString*emailRegex=@"[A-Z0-9a-z._%+-]+@[A-Za-z0-9.-]+\\.[A-Za-z]{2,4}"; NSPredicate*emailTest=[NSPredicatepredicateWithFormat:@"SELFMATCHES%@",emailRegex]; return[emailTestevaluateWithObject:email];网上看到的,未验证,仅供参考 阅读全文
摘要:
设置远程origin:git remote add origin ssh://yourname@yourdomain/path/to/yourgit.git设置远程默认分支:git branch --set-upstream-to=origin/ master 阅读全文
摘要:
case块内用{}包裹即可 阅读全文
摘要:
可能是进行了不必要的reloaddata,换句话说就是进行了多次reloaddata 阅读全文
摘要:
http://www.ibm.com/developerworks/cn/opensource/os-cn-yii/http://www.youtube.com/watch?v=ggMdkyulWGE 阅读全文