Translate
2015年4月13日 星期一
2015年3月31日 星期二
Reachability
常常出現這個錯誤
+ (Reachability*) reachabilityWithAddress: (const struct sockaddr_in*) hostAddress;
*declaration of 'struct sockaddr_in*' will not be visible outside of this function*
看了很討厭後來再找到解決方法
解答在這
import <>打不上去所以請自己<>
+ (Reachability*) reachabilityWithAddress: (const struct sockaddr_in*) hostAddress;
*declaration of 'struct sockaddr_in*' will not be visible outside of this function*
看了很討厭後來再找到解決方法
解答在這
import netinet/in.himport <>打不上去所以請自己<>
2015年3月30日 星期一
UILabel and UITextView
最近遇到一個問題
字串相同字型大小相同
在UILabel跟UITextView呈現的size不一樣
後來在這邊找到了解答
字串相同字型大小相同
在UILabel跟UITextView呈現的size不一樣
後來在這邊找到了解答
textView.textContainer.lineFragmentPadding = 0;
textView.textContainerInset = UIEdgeInsetsZero;
NSMutableParagraphStyle *paragraphStyle = [[NSMutableParagraphStyle alloc] init];
paragraphStyle.lineSpacing = -0.38;
NSDictionary *attrsDictionary =
@{ NSFontAttributeName: [UIFont fontWithName:@"HelveticaNeue" size:13.0f],
NSParagraphStyleAttributeName: paragraphStyle};
textView.attributedText = [[NSAttributedString alloc] initWithString:textView.text attributes:attrsDictionary];
2015年1月8日 星期四
2014年12月16日 星期二
Objective-C Math functions
2014年10月20日 星期一
轉帖Xcode6中怎么添加空工程模板
把Empty Application.xctemplate 拷贝到
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/Library/Xcode/Templates/Project Templates/iOS/Application下就可以了
但是要保证你的Xcode的路径是正确地。退出Xcode 再打开就可以了
Empty Application.xctemplate
2014年10月16日 星期四
訂閱:
意見 (Atom)