会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
沙影无痕
博客园
首页
新随笔
联系
订阅
管理
上一页
1
···
10
11
12
13
14
15
16
17
18
···
22
下一页
2014年1月9日
cocos2dx 3.0 安装及项目创建
摘要: 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 沙影无痕
阅读(166)
评论(0)
推荐(0)
2014年1月8日
显示自定的xib设计非纯代码的UITableViewCell
摘要: MessageCell 为自定义的UITableViewCell,并且Cell上添加的控件采用的是UI控件直接拖拉到视图上,非代码编写,为了让拖拉上去的控件能够正常显示,可以采取以下方法: staticNSString *Identifier =@"Cell"; MessageCell *cell...
阅读全文
posted @ 2014-01-08 13:55 沙影无痕
阅读(114)
评论(0)
推荐(0)
2014年1月6日
UITableView 常用的几个方法
摘要: - (NSInteger) numberOfSectionsInTableView:(UITableView *)tableView { return 1; }- (NSInteger) tableView:(UITableView *)tableView numberOfRowsInSecti...
阅读全文
posted @ 2014-01-06 11:40 沙影无痕
阅读(101)
评论(0)
推荐(0)
2014年1月2日
播放视频音频文件使用 MPMoviePlayerViewController
摘要: MPMoviePlayerViewController *_moviePlayer = [[[MPMoviePlayerViewController alloc]initWithContentURL:[NSURL fileURLWithPath:URLStr]] autorelease]; ...
阅读全文
posted @ 2014-01-02 14:16 沙影无痕
阅读(174)
评论(0)
推荐(0)
UITextField 光标的位置设置获取
摘要: UITextField 光标的位置设置获取通过给UITextField 加一个拓展//#import "UITextField+ExtentRange.h"#import @interface UITextField (ExtentRange)- (NSRange) selectedRange;- ...
阅读全文
posted @ 2014-01-02 08:59 沙影无痕
阅读(251)
评论(0)
推荐(0)
2013年12月31日
获取UIView所在的视图控制器(UIViewController)
摘要: (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 沙影无痕
阅读(212)
评论(0)
推荐(0)
2013年12月18日
十六进制的颜色值直接转为ios可用的UIColor
摘要: ////////////////////////////@interface UIColor (extension)+ (UIColor*) colorWithHex:(NSInteger)hexValue alpha:(CGFloat)alphaValue;+ (UIColor*) colorWi...
阅读全文
posted @ 2013-12-18 17:18 沙影无痕
阅读(244)
评论(0)
推荐(0)
2013年12月16日
UIWebView 打开txt文档中文不乱码方法
摘要: UIWebView 打开txt文档中文不乱码方法 NSData *txtData = [NSDatadataWithContentsOfFile:fileURL]; //自定义一个编码方式 [_webViewloadData:txtData MIMEType:@"text/...
阅读全文
posted @ 2013-12-16 13:54 沙影无痕
阅读(144)
评论(0)
推荐(0)
UIWebView 打开文件的时候适应屏幕设置
摘要: UIWebView 打开文件的时候适应屏幕设置当设置 webView.scalesPageToFit = YES,那么打开的无论是网页还是txt,doc文档,都是适应了屏幕显示的,可以通过触摸拉伸放大;如果设置该属性为NO的时候,则页面是经过放大了的,对于doc,xls文档来说,显示的字体比较大,无...
阅读全文
posted @ 2013-12-16 13:51 沙影无痕
阅读(136)
评论(0)
推荐(0)
2013年12月11日
JS中JSON解析
摘要: JSON解析var jsonStr = { "lat":"26.095445","lng":"119.132255","address":"福州"};var obj = eval('(' + jsonStr + ')');
阅读全文
posted @ 2013-12-11 12:46 沙影无痕
阅读(166)
评论(0)
推荐(0)
上一页
1
···
10
11
12
13
14
15
16
17
18
···
22
下一页
公告