SWFTools pdf2swf 参数详解 及中文乱码问题
2015-02-02 09:06
267 查看
1.去掉 App Store 内图标上部高亮效果的办法
如果您要去掉这一高亮特效,可以在程序的 info.plist 里添加一个值类型为 boolean 的字段:UIPrerenderedIcon,然后选中。
2.cocos2D新旧类与方法
旧:
CCBitmapFontAtlas
新:CCLabelBMFont
3.box2d的初学最好打开GLESDebugDraw
4.在Xcode下作iPhone应用开发,创建一个unit test,如果所以test函数是正确的则build正常,但如果有一个test结果失败,build时就遇到 Command /bin/sh failed with exit code 1的错误提示。
解决:修改Run Script的内容"${SYSTEM_DEVELOPER_DIR}/Tools/RunUnitTests" 为"${SYSTEM_DEVELOPER_DIR}/Tools/RunUnitTests" 1> /tmp/RunUnitTests.out
5.写unit test时,如果test case里有类似空引用的错误会报exit code 1的错误提示
6.将NSString转换编码集为gb2312或者gbk的方法
NSURL *url = [NSURL URLWithString:urlStr];
NSData *data = [NSData dataWithContentsOfURL:url];
NSStringEncoding enc = CFStringConvertEncodingToNSStringEncoding(kCFStringEncodingGB_18030_2000);
NSString *retStr = [[NSString alloc] initWithData:data encoding:enc];
7.隐藏UITableViewController的Title
self.navigationController.navigationBarHidden = YES;
8.UITableView排序
- (void) tableView:(UITableView *)tableView moveRowAtIndexPath:(NSIndexPath *)sourceIndexPath toIndexPath:(NSIndexPath *)targetIndexPath
9.UIPopoverController 的nav push controllerview的时间不要自动大小
- (void)viewWillAppear:(BOOL)animated {
CGSize size = {320, 480}; // size of view in popover
self.contentSizeForViewInPopover = size;
[super viewWillAppear:animated];
}
10.让 UILabel 根据字体自动调整大小的方法
CGSize maximumLabelSize = CGSizeMake(250 ,MAXFLOAT);
CGSize expectedLabelSize = [LABEL.text sizeWithFont:[UIFont systemFontOfSize:UILabel.font]
constrainedToSize:maximumLabelSize
lineBreakMode:UILineBreakModeWordWrap];
然后你可以根据 expectedLabelSize 值来调整控件的宽了
11.用 Quartz 画聊天对话框背景实例 http://donbe.blog.163.com/blog/static/13804802120106302487518/
如果您要去掉这一高亮特效,可以在程序的 info.plist 里添加一个值类型为 boolean 的字段:UIPrerenderedIcon,然后选中。
2.cocos2D新旧类与方法
旧:
CCBitmapFontAtlas
新:CCLabelBMFont
3.box2d的初学最好打开GLESDebugDraw
4.在Xcode下作iPhone应用开发,创建一个unit test,如果所以test函数是正确的则build正常,但如果有一个test结果失败,build时就遇到 Command /bin/sh failed with exit code 1的错误提示。
解决:修改Run Script的内容"${SYSTEM_DEVELOPER_DIR}/Tools/RunUnitTests" 为"${SYSTEM_DEVELOPER_DIR}/Tools/RunUnitTests" 1> /tmp/RunUnitTests.out
5.写unit test时,如果test case里有类似空引用的错误会报exit code 1的错误提示
6.将NSString转换编码集为gb2312或者gbk的方法
NSURL *url = [NSURL URLWithString:urlStr];
NSData *data = [NSData dataWithContentsOfURL:url];
NSStringEncoding enc = CFStringConvertEncodingToNSStringEncoding(kCFStringEncodingGB_18030_2000);
NSString *retStr = [[NSString alloc] initWithData:data encoding:enc];
7.隐藏UITableViewController的Title
self.navigationController.navigationBarHidden = YES;
8.UITableView排序
- (void) tableView:(UITableView *)tableView moveRowAtIndexPath:(NSIndexPath *)sourceIndexPath toIndexPath:(NSIndexPath *)targetIndexPath
9.UIPopoverController 的nav push controllerview的时间不要自动大小
- (void)viewWillAppear:(BOOL)animated {
CGSize size = {320, 480}; // size of view in popover
self.contentSizeForViewInPopover = size;
[super viewWillAppear:animated];
}
10.让 UILabel 根据字体自动调整大小的方法
CGSize maximumLabelSize = CGSizeMake(250 ,MAXFLOAT);
CGSize expectedLabelSize = [LABEL.text sizeWithFont:[UIFont systemFontOfSize:UILabel.font]
constrainedToSize:maximumLabelSize
lineBreakMode:UILineBreakModeWordWrap];
然后你可以根据 expectedLabelSize 值来调整控件的宽了
11.用 Quartz 画聊天对话框背景实例 http://donbe.blog.163.com/blog/static/13804802120106302487518/
相关文章推荐
- SWFTools pdf2swf 参数详解 及中文乱码问题
- Http协议中关于请求与响应中文参数乱码问题详解
- 解决ASP.NET带中文参数出现乱码的问题
- URL中文参数乱码问题解决方法!
- 解決GridView中链接带中文参数时乱码的问题
- jsp中response.sendRedirect()中文参数乱码问题
- liferay 中文参数乱码问题(二)
- 关于jsp中,以url形式传递中文参数的乱码的问题
- URL 传参数 中文乱码 问题及其它 乱码问题解决方案
- Mql5.0数据库乱码,request 通过get传中文参数乱码,通过url直接下载中文乱码问题
- JSP传递中文参数乱码问题的解决方法
- jsp使用URL编码传递中文参数问题※※jsp传递中文参数乱码问题
- url带中文参数显示乱码的问题
- JSP中文乱码问题解决方法详解
- 向网页传送中文参数乱码的问题
- jsp页面url参数传中文乱码问题
- 关于javascript调用webservices的中文参数乱码的问题
- url带中文参数显示乱码的问题
- asp.net页面通过URL参数传值中文乱码问题解决办法
- JSP编程手记------jsp页url中传中文参数乱码问题续