上一页 1 ··· 10 11 12 13 14 15 16 17 18 ··· 22 下一页
摘要: cocos2dx 3.0 安装及项目创建(1)cocos2dx 3.0(2.x) 之后都是不需要安装的,解压出来就可以用了;(2)项目的创建大致可以分为两部首先需要做的是打开终端,然后执行a. cd /Users/admin/Documents/cocos2d-x-3.0beta/tools/p... 阅读全文
posted @ 2014-01-09 22:14 沙影无痕 阅读(164) 评论(0) 推荐(0) 编辑
摘要: MessageCell 为自定义的UITableViewCell,并且Cell上添加的控件采用的是UI控件直接拖拉到视图上,非代码编写,为了让拖拉上去的控件能够正常显示,可以采取以下方法: staticNSString *Identifier =@"Cell"; MessageCell *cell... 阅读全文
posted @ 2014-01-08 13:55 沙影无痕 阅读(109) 评论(0) 推荐(0) 编辑
摘要: - (NSInteger) numberOfSectionsInTableView:(UITableView *)tableView { return 1; }- (NSInteger) tableView:(UITableView *)tableView numberOfRowsInSecti... 阅读全文
posted @ 2014-01-06 11:40 沙影无痕 阅读(94) 评论(0) 推荐(0) 编辑
摘要: MPMoviePlayerViewController *_moviePlayer = [[[MPMoviePlayerViewController alloc]initWithContentURL:[NSURL fileURLWithPath:URLStr]] autorelease]; ... 阅读全文
posted @ 2014-01-02 14:16 沙影无痕 阅读(164) 评论(0) 推荐(0) 编辑
摘要: UITextField 光标的位置设置获取通过给UITextField 加一个拓展//#import "UITextField+ExtentRange.h"#import @interface UITextField (ExtentRange)- (NSRange) selectedRange;- ... 阅读全文
posted @ 2014-01-02 08:59 沙影无痕 阅读(246) 评论(0) 推荐(0) 编辑
摘要: (1)UIView-Extent.h#import @interface UIView (Extend)- (UIViewController *)viewController;@end(2) UIView-Extent.m#import "UIView+Extend.h"@implementati... 阅读全文
posted @ 2013-12-31 10:36 沙影无痕 阅读(203) 评论(0) 推荐(0) 编辑
摘要: ////////////////////////////@interface UIColor (extension)+ (UIColor*) colorWithHex:(NSInteger)hexValue alpha:(CGFloat)alphaValue;+ (UIColor*) colorWi... 阅读全文
posted @ 2013-12-18 17:18 沙影无痕 阅读(239) 评论(0) 推荐(0) 编辑
摘要: UIWebView 打开txt文档中文不乱码方法 NSData *txtData = [NSDatadataWithContentsOfFile:fileURL]; //自定义一个编码方式 [_webViewloadData:txtData MIMEType:@"text/... 阅读全文
posted @ 2013-12-16 13:54 沙影无痕 阅读(138) 评论(0) 推荐(0) 编辑
摘要: UIWebView 打开文件的时候适应屏幕设置当设置 webView.scalesPageToFit = YES,那么打开的无论是网页还是txt,doc文档,都是适应了屏幕显示的,可以通过触摸拉伸放大;如果设置该属性为NO的时候,则页面是经过放大了的,对于doc,xls文档来说,显示的字体比较大,无... 阅读全文
posted @ 2013-12-16 13:51 沙影无痕 阅读(124) 评论(0) 推荐(0) 编辑
摘要: JSON解析var jsonStr = { "lat":"26.095445","lng":"119.132255","address":"福州"};var obj = eval('(' + jsonStr + ')'); 阅读全文
posted @ 2013-12-11 12:46 沙影无痕 阅读(157) 评论(0) 推荐(0) 编辑
上一页 1 ··· 10 11 12 13 14 15 16 17 18 ··· 22 下一页