摘要:1. 随机数:Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->srandom(time(NULL));//随机数种子idd=random();//随机数2. 视频播放:Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--> MPMoviePlayerController*moviePlayer;m
阅读全文
随笔分类 - 5. IOS技术
IOS技术
摘要:1.stringWithFormat 用法:Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--> [NSStringstringWithFormat:@"Hight:%d°%@Low:%d°%@",[Temp],@"C",[lTemp],@"C"]; NSString to NSData:NSString* str=@"kilonet"; NSDa
阅读全文
摘要:开始iPhone的Practise Project,其中有很多的问题,先记录起来,以免以后再犯: 1. EXC_BAD_ACCESS: 发生场景1:一个指针转了两次,release了两次,其实只要release一次就可以。或者用指针时避免到处赋值。 发生场景2:在一个View Controller A里动态加载另外一个View Controller B, B中无法使用UITableViewDelegate。 2. Debug里出现一批Leaking的警告错误: 发生场景:使用了NSThread造成的。如下调用: [NSThreaddetachNewThreadSelector:...
阅读全文
摘要:A feature of the iPhone SDK allows you to bind your application to a custom url scheme. This allows others to trigger the opening of your app and opens the possibilities of passing data between apps.Here’s a quick tutorial on how to update your Info.plist to register your own url.List of iPhone apps
阅读全文
摘要:iPhone Simulator数据保存位置:/Users/lvyile/Library/Application Support/iPhone Simulator/User/Applications/<AppID>/Documents/db.sql
阅读全文

浙公网安备 33010602011771号