ehll

导航

2013年5月17日 #

记一下apple opensource的下载地址

摘要: http://opensource.apple.com/tarballs/ 阅读全文

posted @ 2013-05-17 16:07 ehll 阅读(288) 评论(0) 推荐(0) 编辑

2013年3月4日 #

嫖来的,设置UIWebview的ua

摘要: 1 NSDictionary *dictionnary = [[NSDictionary alloc] initWithObjectsAndKeys:@"Your desired user agent", @"UserAgent", nil];2 [[NSUserDefaults standardUserDefaults] registerDefaults:dictionnary];3 [dictionnary release]; 阅读全文

posted @ 2013-03-04 14:36 ehll 阅读(332) 评论(0) 推荐(0) 编辑

2013年2月25日 #

XCode调试iOS程序时处理LLDB捕获信号

摘要: 如图.在Breakpoint Navigator下面,Add Symbolic Breakpoint...如果调试Mac程序的话,就把UIApplicatioinMain换成NSApplicationMain. 阅读全文

posted @ 2013-02-25 15:48 ehll 阅读(197) 评论(0) 推荐(0) 编辑

2013年1月24日 #

XCode 4.5的自动代码完成模板

摘要: 通过XCode的菜单View->Utilities->Show Code Snippet Library查看,修改,添加.(系统自带的似乎只能查看不能直接进行修改)系统默认的Code Snippet对应的文件是:/Applications/Xcode.app/Contents/PlugIns/IDECodeSnippetLibrary.ideplugin/Contents/Resources/SystemCodeSnippets.codesnippets如果要想修改的话就直接通过这个文件去修改吧.比如说大括号换行的问题添加自定义的Code Snippet的方式就是直接拖到这个窗口里 阅读全文

posted @ 2013-01-24 17:16 ehll 阅读(438) 评论(0) 推荐(0) 编辑

2013年1月22日 #

关于AVPlayerItem的duration问题

摘要: 最近在搞avplayer,HTTP Live Streaming Media.其中测试发现了一个bug,在使用airplay时有时候会出现总时间不正确的情况,大概可能在网络不好的情况下出现,总时间为1秒.在官方sdk里面的demo里面获取duration的代码: 1 /* --------------------------------------------------------- 2 ** Get the duration for a AVPlayerItem. 3 ** ------------------------------------------------------... 阅读全文

posted @ 2013-01-22 21:24 ehll 阅读(3247) 评论(0) 推荐(0) 编辑