01 2016 档案

摘要:CoreGraphics框架中的CGAffineTransform类可用于设定UIView的transform属性,控制视图的缩放、旋转和平移操作:另称放射变换矩阵,可参照线性代数的矩阵实现方式0.0这里附上的CGAffineTransform官方文档:https://developer.apple... 阅读全文
posted @ 2016-01-18 18:20 karling 阅读(185) 评论(0) 推荐(0) 编辑
摘要:基本的视频播放,应该都是用MPMoviePlayerController吧,SDK文档里给出的例子也是这样的。一般的步骤:1. 准备好视频路径,创建MPMoviePlayerController,即使是本地视频文件,也要生成NSURL路径。[cpp]view plaincopyNSString*fi... 阅读全文
posted @ 2016-01-13 20:45 karling 阅读(235) 评论(0) 推荐(0) 编辑
摘要:阅读:15112014-04-29 13:58标签:弹出窗popwindowit参考:http://www.cnblogs.com/linyawen/archive/2012/06/09/2542784.html一、主要用途 弹出模态ViewController(弹出控制器)是IOS变成中很有用... 阅读全文
posted @ 2016-01-13 20:14 karling 阅读(286) 评论(0) 推荐(0) 编辑
摘要:import UIKitclass ViewController: UIViewController { override func viewDidLoad() { super.viewDidLoad() var documentsPath:Stri... 阅读全文
posted @ 2016-01-13 13:45 karling 阅读(776) 评论(0) 推荐(0) 编辑
摘要://// ViewController.swift// LessonMediaPlayerWithSwift//// Created by 挤眼的家雀 on 15/4/9.// Copyright (c) 2015年 徐栋. All rights reserved.//import UIKi... 阅读全文
posted @ 2016-01-13 13:03 karling 阅读(301) 评论(0) 推荐(0) 编辑
摘要://// ViewController.swift// MediaPlayerDemo01//// Created by karling on 16/1/5.// Copyright © 2016年 karling. All rights reserved.//import UIKitimport ... 阅读全文
posted @ 2016-01-07 09:09 karling 阅读(141) 评论(0) 推荐(0) 编辑