摘要: 1,在AppDelegate.h里定义一个idcurrentViewController;在AppDelegate.m里@implementationUIApplication (Private)- (BOOL)customOpenURL:(NSURL*)url{ beautyAppDelegate*MyWatcher = [[UIApplicationsharedApplication]delegate]; if(MyWatcher.currentViewController) { [MyWatcher.currentViewControllerhandleURL:url]; re... 阅读全文
posted @ 2013-06-27 20:00 天牛 阅读(322) 评论(0) 推荐(0)
摘要: 利用自带MPMoviePlayerController来实现视频播放,首先要在项目中导入MediaPlayer.Framework框架包。在视图控制器中#import"MediaPlayer/MPMoviePlayerController.h".m文件中,加入一下代码- (void)viewDidLoad{[superviewDidLoad];self.navigationController.navigationBar.hidden=YES;//geomancy.jpgUIImageView* nanshanImage=[[UIImageViewalloc]initWit 阅读全文
posted @ 2013-06-27 18:44 天牛 阅读(444) 评论(0) 推荐(0)
摘要: 动画效果提供了状态或页面转换时流畅的用户体验,在iOS系统中,咱们不需要自己编写绘制动画的代码,Core Animation提供了丰富的api来实现你需要的动画效果。 UIKit只用UIView来展示动画,动画支持UIView下面的这些属性改变:frameboundscentertransformalphabackgroundColorcontentStretch1、commitAnimations方式使用UIView动画- (void)viewDidLoad{ [super viewDidLoad]; UIButton *button = [UIButton butto... 阅读全文
posted @ 2013-06-27 14:18 天牛 阅读(290) 评论(0) 推荐(0)
摘要: 1.新建empty AppLication,添加HomeViewController页面, iphone.png图片2.在HomeViewController.xib中添加Image View,并调整其大小;再添加一个Slider控件3.HomeViewController.h代码:#import @interface HomeViewController : UIViewController{ CGPoint delta;//坐标变化量 NSTimer *timer; CGSize picSize;//图片大小 }@property (retain, nonatomic) IBOutle.. 阅读全文
posted @ 2013-06-27 14:15 天牛 阅读(435) 评论(0) 推荐(0)
摘要: 本文由论坛会员artgolff分享 前几天搜索资料时发现一个网站: iPhone Core Audio Development ,里面有iOS底层 音频 技术的几个源 代码 ,如果你要实现VoIP电话,实时语音分析,实时混音等功能本文由论坛会员artgolff分享前几天搜索资料时发现一个网站:iPhoneCoreAudio Development,里面有iOS底层音频技术的几个源代码,如果你要实现VoIP电话,实时语音分析,实时混音等功能可以参考。不幸的是这个技术网站由于不能说的原因不能访问:)需要翻,我把源代码附上,方便大家下载学习。这几个代码中只用到了声音播放部分代码,去掉了麦克风输入部分 阅读全文
posted @ 2013-06-27 09:50 天牛 阅读(516) 评论(0) 推荐(0)