上一页 1 2 3 4 5 6 ··· 9 下一页

2013年1月7日

iPhone开发之音频: 文件和数据类型(一)

摘要: 转自:http://www.dapps.net/dev/iphone/audio-101-for-iphone-developers-file-and-data-formats.html在做iphone开发之前,我(ray)对声音格式了解的相当少。我知道一些“wav”和“mp3”声音格式的差异,但是我肯定不能准确地告诉你“AAC”、“CAF”是什么格式的声音文件,同时也不知道在MAC上最好的转换音频文件的方法是什么。我深知,假如你想要成为一名合格的iphone开发者,你必须对声音文件数据格式,转换,录音和使用什么音频操作API有个基本的了解。这篇文章是三篇涵盖音频开发教程中的第一篇。在这篇文章 阅读全文

posted @ 2013-01-07 17:15 kiao295338444 阅读(400) 评论(0) 推荐(0) 编辑

给View添加阴影 和边框

摘要: 给View添加阴影 和边框转自:http://ios-iphone.diandian.com/post/2011-09-15/5067179UIImageView *imgvPhoto= [UIImageView alloc] init];//添加边框 CALayer *layer = [_imgvPhoto layer];layer.borderColor = [[UIColor whiteColor] CGColor];layer.borderWidth = 5.0f;//添加四个边阴影_imgvPhoto.layer.shadowColor = [UIColor blackColor]. 阅读全文

posted @ 2013-01-07 11:16 kiao295338444 阅读(272) 评论(0) 推荐(0) 编辑

2012年12月6日

使用Xcode和Instruments调试解决iOS内存泄露(转)

摘要: 转自:http://blog.csdn.net/totogo2010/article/details/8233565虽然iOS 5.0版本之后加入了ARC机制,由于相互引用关系比较复杂时,内存泄露还是可能存在。所以了解原理很重要。这里讲述在没有ARC的情况下,如何使用Instruments来查找程序中的内存泄露,以及NSZombieEnabled设置的使用。本文假设你已经比较熟悉Obj-C的内存管理机制。实验的开发环境:XCode 4.5.21、运行Demo。先下载一个实现准备好的内存泄露的Demo吧:leak app下载下来,打开运行,程序是一个寿司的列表,列出各种寿司卷。试着选择里面的几行 阅读全文

posted @ 2012-12-06 15:19 kiao295338444 阅读(109) 评论(0) 推荐(0) 编辑

2012年12月5日

linux 实时查看刷新日志文件

摘要: tail-ffilename 阅读全文

posted @ 2012-12-05 12:00 kiao295338444 阅读(1359) 评论(0) 推荐(1) 编辑

CentOS-6 Configure Rsyslog

摘要: CentOS-6 Configure RsyslogServer ConfigurationBackup and Edit Rsyslog Configuration Filecp /etc/rsyslog.conf /etc/rsyslog.conf.oriadd lines to /etc/rsyslog.conf by running below commandecho "\$template DailyPerHostLogs,\”/var/log/rsyslog/%HOSTNAME%/%HOSTNAME%.%\$YEAR%-%\$MONTH%-%\$DAY%.log\&quo 阅读全文

posted @ 2012-12-05 11:58 kiao295338444 阅读(407) 评论(0) 推荐(0) 编辑

2012年11月22日

ios保存照片到照片库

摘要: UIImageWriteToSavedPhotosAlbum(image, self, @selector(image:didFinishSavingWithError:contextInfo:), nil);//结果回调方法#pragma mark - 保存照片到本地照片库的回调- (void)image:(UIImage *)image didFinishSavingWithError:(NSError *)error contextInfo:(void *)contextInfo{ if (error == nil) { [[AutoDismissView in... 阅读全文

posted @ 2012-11-22 11:14 kiao295338444 阅读(160) 评论(0) 推荐(0) 编辑

2012年11月20日

去除空白的UITableViewCell的分割线方法

摘要: 有两种不同的方法 第一种是设置self.tableView.separatorStyle =UITableViewCellSeparatorStyleNone;为空,然后在cell中自定义一条分割线 第二种是把tableview的tableBootView设置为一个空UIView UIView*footer =[[UIView alloc] initWithFrame:CGRectZero]; self.myTable.tableFooterView = footer;[footer release]; 阅读全文

posted @ 2012-11-20 10:31 kiao295338444 阅读(355) 评论(0) 推荐(0) 编辑

2012年11月12日

ios放大UILabel

摘要: tipsLabel.transform = CGAffineTransformScale(tipsLabel.transform, 1.5, 1.5); 阅读全文

posted @ 2012-11-12 11:39 kiao295338444 阅读(139) 评论(0) 推荐(0) 编辑

2012年11月7日

自定义UISearchBar的背景

摘要: UISearchBar *searchBar = [[UISearchBar alloc] initWithFrame:CGRectMake(0, 0, [UIScreen mainScreen].applicationFrame.size.width, kTitleBarHeight)]; searchBar.delegate = self; searchBar.layer.masksToBounds = YES; //取消searchbar的边框颜色 NSString *osVersion = [DeviceHelper getOSVersion]; NS... 阅读全文

posted @ 2012-11-07 12:07 kiao295338444 阅读(302) 评论(0) 推荐(0) 编辑

2012年11月5日

UITextView实现placehold功能

摘要: I found myself a verry easy way to imitate a place-holderin the NIB or code set your textView's textColor to lightGrayColor (most of the time)make sure that your textView's delegate is linked to file's owner and implement UITextViewDelegate in your header fileset the default text of your 阅读全文

posted @ 2012-11-05 19:06 kiao295338444 阅读(347) 评论(0) 推荐(0) 编辑

上一页 1 2 3 4 5 6 ··· 9 下一页

导航