随笔分类 - MonoTouch
摘要:对绑定不了解的,请参考这篇文章http://www.cnblogs.com/beginor/archive/2012/04/22/2465441.html本文主要讲述上文没有提到的1.构造函数在MonoTouch绑定中,构造函数名是固定的,都是 Constructor,返回类型:IntPtr.Obj-C 代码:-(id)initWithCenterViewController:(UIViewController *)centerViewController leftDrawerViewController:(UIViewController *)leftDrawerViewController
阅读全文
摘要:这只是一个事例。在这个例子中,先在NavigationController中找UIView,然后在找到的位置,用一个UIView覆盖它。 UIView view = null; foreach (UIView subview in this.NavigationController.NavigationBar) { if (subview is UIControl) { Console.WriteLine (subview.ToString ()); C...
阅读全文
摘要:MonoTouch的xamar.in/r/zhujingcheng/xamarin.com/monotouchMonoDroid的xamar.in/r/zhujingcheng/xamarin.com/monoforandroid他们自己的官网xamar.in/r/zhujingcheng/xamarin.com
阅读全文
摘要:There are 4 use-cases for deploying an app to an iOS device:DevelopmentAd HocEnterpriseRetail / App StoreThis tutorial is going to concentrate on the 2nd use-case: “Ad Hoc Distribution.”Although you might think of “ad hoc” as meaning something done casually or off the cuff, ad hoc distribution actua
阅读全文
摘要:接着上一个随笔。视频播放。在IOS上,视频播放使用类MPMoviePlayerController进行,由于苹果公司已经封装良好,使用很简单。引入命名空间using MonoTouch.MediaPlayer;实现代码MPMoviePlayerController player;player=new MPMoviePlayerController(NSUrl.FromFilename("aaa.m4v"));player.View.Frame= this.imgAnimation.Frame; this.View.AddSubview(player.View);player
阅读全文
摘要:在IOS设备上,经常会碰到多媒体的播放。本文介绍音频播放。播放声音有两种选择: 1.SystemSound 2.AVAudioPlayerSystemSound如果音频时间短(30秒以内),且未压缩,SystemSound是个好选择。引入命名空间using MonoTouch.AudioToolbox;具体代码 SystemSound sound=null; var audioFile=NSUrl.FromFilename("Sound/splash.wav");sound= SystemSound.FromFile(audioFile);sound.PlaySystemS
阅读全文
浙公网安备 33010602011771号