[ios] fix code standard; update for 64bit

This commit is contained in:
Craig Dunn 2017-04-07 09:36:03 -07:00
Родитель 5d617b22fb
Коммит d15c4e5072
2 изменённых файлов: 13 добавлений и 13 удалений

Просмотреть файл

@ -28,7 +28,7 @@
<MtouchUseRefCounting>true</MtouchUseRefCounting> <MtouchUseRefCounting>true</MtouchUseRefCounting>
<MtouchI18n> <MtouchI18n>
</MtouchI18n> </MtouchI18n>
<MtouchArch>i386</MtouchArch> <MtouchArch>i386, x86_64</MtouchArch>
</PropertyGroup> </PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|iPhoneSimulator' "> <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|iPhoneSimulator' ">
<DebugType>none</DebugType> <DebugType>none</DebugType>
@ -51,7 +51,7 @@
<CodesignKey>iPhone Developer</CodesignKey> <CodesignKey>iPhone Developer</CodesignKey>
<MtouchDebug>true</MtouchDebug> <MtouchDebug>true</MtouchDebug>
<MtouchProfiling>true</MtouchProfiling> <MtouchProfiling>true</MtouchProfiling>
<MtouchArch>ARMv7</MtouchArch> <MtouchArch>ARMv7, ARMv7s, ARM64</MtouchArch>
</PropertyGroup> </PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|iPhone' "> <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|iPhone' ">
<DebugType>none</DebugType> <DebugType>none</DebugType>

Просмотреть файл

@ -8,10 +8,10 @@ namespace AVPlayerDemo
{ {
public partial class AVPlayerDemoViewController : UIViewController public partial class AVPlayerDemoViewController : UIViewController
{ {
AVPlayer _player; AVPlayer player;
AVPlayerLayer _playerLayer; AVPlayerLayer playerLayer;
AVAsset _asset; AVAsset asset;
AVPlayerItem _playerItem; AVPlayerItem playerItem;
public AVPlayerDemoViewController () : base ("AVPlayerDemoViewController", null) public AVPlayerDemoViewController () : base ("AVPlayerDemoViewController", null)
{ {
@ -29,16 +29,16 @@ namespace AVPlayerDemo
{ {
base.ViewDidLoad (); base.ViewDidLoad ();
_asset = AVAsset.FromUrl (NSUrl.FromFilename ("sample.m4v")); asset = AVAsset.FromUrl (NSUrl.FromFilename ("sample.m4v"));
_playerItem = new AVPlayerItem (_asset); playerItem = new AVPlayerItem (asset);
_player = new AVPlayer (_playerItem); player = new AVPlayer (playerItem);
_playerLayer = AVPlayerLayer.FromPlayer (_player); playerLayer = AVPlayerLayer.FromPlayer (player);
_playerLayer.Frame = View.Frame; playerLayer.Frame = View.Frame;
View.Layer.AddSublayer (_playerLayer); View.Layer.AddSublayer (playerLayer);
_player.Play (); player.Play ();
} }
public override void ViewDidUnload () public override void ViewDidUnload ()