03 2013 档案
摘要:1. iOS APP Project or Mac APP Project编译错误提示:“The run destination My Mac 64-bit is not valid for Running the scheme '***'.The scheme '***' contains no buildables that can be built for the SDKs supported by the run destination My Mac 64-bit. Make sure your targets all specify SDKs that
阅读全文
摘要:// create a table view and a scroll viewNSScrollView * tableContainer = [[NSScrollView alloc] initWithFrame:NSMakeRect(10, 10, 380, 200)];NSTableView * tableView = [[NSTableView alloc] initWithFrame:NSMakeRect(0, 0, 364, 200)];// create columns for our tableNSTableColumn * column1 = [[NSTableColumn
阅读全文
摘要:[self.window.contentView enterFullScreenMode:[self.windowscreen]
阅读全文
摘要:第1步:单击左上角苹果标志,选择【系统偏好设置…】第2步:单击【网络】第3步:单击【+】,接口选择【VPN】,VPN类型选择【PPTP】,服务名称:默认(可以自定义),然后单击【创建】第4步:设置【服务器地址,填写卖家给的主机IP或域名】,【账户名称,填写卖家给的账号】,然后单击【鉴定设置】如果没有VPN账号,本站推荐:美国高速VPN-美国VPN,轻松访问FACEBOOK, YOUTUBE, TWITTER等网站!第5步:设置【密码,填写卖家给的账号密码】,设置好后单击【好】,然后单击【高级…】第6步:【通过VPN连接发送所有通信】一定要选中!闲置时间可以修改的长一些。单击【好】,然后单击【连
阅读全文
摘要:在国外网上看到的,觉得很好,不仅可以长卸载的知识,还对mac系统有更深的认识。比如偏好设置文件,我以前设置一个程序坏了,打不开了,怎么重装都打不开,后来才知道系统还保留着原来的偏好设置文件。因此这篇文章对任何不太了解的人都有帮助,觉得很好,所以翻译了下发上来和大家共享。先发原文,我觉得没人想看原文地址:http://guides.macrumors.com/Uninstalling_Applications_in_Mac_OS_XMac如何正确的卸载应用程序在Mac系统中卸载应用程序和在微软windows里有很大不同,因为Mac没有像Windows里那样的注册表。大多数Windows的应用程序
阅读全文
摘要:注:使用UIImageWriteToSavedPhotosAlbum保存图像,UISaveVideoAtPathToSavedPhotosAlbum保存视频. 4.0后使用writeImageToSavedPhotosAlbum:metadata:completionBlock:保存元数据.- (void)imagePickerController:(UIImagePickerController *)picker didFinishPickingMediaWithInfo:(NSDictionary *)info{ NSString* path = [[info objectForK...
阅读全文
摘要:缺省情况下,当设备在一定时间内没有触控动作,iOS会锁住屏幕。但有些应用程序是不需要锁住屏幕的,比如游戏,视频这类应用。可以通过设置UIApplication的idleTimerDisabled属性来指定iOS是否锁频:// 禁用休闲时钟[[UIApplication sharedApplication] setIdleTimerDisabled: YES];// 也可以使用这种语法[UIApplication sharedApplication].idleTimerDisabled = YES;
阅读全文
摘要:AudioSessionInitialize(NULL, NULL, NULL, NULL); AudioSessionSetActive(true); AudioSessionAddPropertyListener(kAudioSessionProperty_CurrentHardwareOutp
阅读全文
摘要:NSDictionary *opts = [NSDictionary dictionaryWithObject:[NSNumber numberWithBool:NO] forKey:AVURLAssetPreferPreciseDurationAndTimingKey];AVURLAsset *urlAsset = [AVURLAsset URLAssetWithURL:videoURL options:opts];AVAssetImageGenerator *generator = [AVAssetImageGenerator assetImageGeneratorWithAsset:ur
阅读全文