Time of Update: 2015-06-07
標籤:照片選擇 1 // MARK: - 選擇照片 2 /*----- 選擇照片 ------*/ 3 @IBAction func addImageButtonClick() 4 { 5 let actionSheet = UIActionSheet(title: "請選擇", delegate: self, cancelButtonTitle: "取消", destructiveButtonTitle: nil,
Time of Update: 2015-06-07
標籤:UITabBarController 1 class UITabBarControllerController: UIViewController { 2 3 var titleString:String! 4 5 @IBOutlet var titleLabel:UILabel! 6 7 @IBOutlet var tabBarCtl:UITabBarController! 8 9 10
Time of Update: 2015-06-07
標籤:CAKeyframeAnimation 1 //CAKeyframeAnimation-關鍵針動畫 2 @IBAction func cakFly() 3 { 4 let animation = CAKeyframeAnimation(keyPath: "position") 5 6 //設定5個位置點 7 let p1 = CGPointMake(0.0, 0.0) 8
Time of Update: 2015-06-07
標籤:同步Get方式 1 // MARK: - 同步Get方式 2 func synchronousGet() 3 { 4 //建立NSURL對象 5 var url:NSURL! = NSURL(string: "http://m.weather.com.cn/data/101010100.html") 6 7 //建立請求對象 8 var urlRequest
Time of Update: 2015-06-07
標籤: UIImageView 1 override func viewDidLoad() { 2 super.viewDidLoad() 3 4 titleLabel.text = titleString 5 6 //通過座標和大小來建立映像視圖 7 var imageView:UIImageView = UIImageView(frame: CGRectMake(
Time of Update: 2015-06-07
標籤:NSURLSession詳解 1 // MARK: - /* 使用NSURLSessionDataTask載入資料 */ 2 func sessionLoadData() 3 { 4 //建立NSURL對象 5 var url:NSURL! = NSURL(string: "http://m.weather.com.cn/data/101010100.html") 6 7
Time of Update: 2015-06-07
標籤:網路監測 1 enum ReachabilityType { 2 case WWAN, 3 WiFi, 4 NotConnected 5 } 6 7 public class Reachability { 8 9 /**10 :see: Original post -
Time of Update: 2015-06-07
標籤:加速計和陀螺儀 1 //返回按鈕事件 2 @IBAction func backButtonClick() 3 { 4 self.navigationController?.popViewControllerAnimated(true) 5 } 6 7 8 @IBOutlet var xLabel:UILabel! 9 @IBOutlet var yLabel:UILabel!
Time of Update: 2015-06-07
標籤: 視頻 1 // MARK: - 播放視頻 2 /*----- 播放視頻 ------*/ 3 4 5 func moviePlayerPreloadFinish(notification:NSNotification) 6 { 7 println("播放完畢") 8 } 9 10 //聲明一個媒體播放器11 var moviePlayer:MPMoviePlayerController?
Time of Update: 2015-06-07
標籤:UISlider 1 2 override func viewDidLoad() { 3 super.viewDidLoad() 4 5 titleLabel.text = titleString 6 7 8 // Do any additional setup after loading the view. 9 10
Time of Update: 2015-06-07
標籤:拍照 1 // MARK: - 拍照 2 func fromPhotograph() 3 { 4 if UIImagePickerController.isSourceTypeAvailable(.Camera) 5 { 6 //建立圖片控制器 7 let picker = UIImagePickerController() 8 9
Time of Update: 2015-06-07
標籤: UISegmentedControl 1 override func viewDidLoad() { 2 super.viewDidLoad() 3 4 titleLabel.text = titleString 5 6 //先建立一個數組用於設定分段控制項的標題 7 var appsArray:[String] = ["租房點評","哪裡逃",
Time of Update: 2015-06-07
標籤:CABasicAnimation動畫 1 //CABasicAnimation-不透明度 2 @IBAction func cabOpacity() 3 { 4 let animation = CABasicAnimation(keyPath: "opacity") 5 6 animation!.fromValue = 1.0 7 animation!.toValue = 0.0 8
Time of Update: 2015-06-07
標籤:UIActivityIndicatorView 1 override func viewDidLoad() { 2 super.viewDidLoad() 3 4 titleLabel.text = titleString 5 6 // Do any additional setup after loading the view. 7 8
Time of Update: 2015-06-07
標籤:UIProgressView 1 override func viewDidLoad() { 2 super.viewDidLoad() 3 4 titleLabel.text = titleString 5 6 7 // Do any additional setup after loading the view. 8 9
Time of Update: 2015-06-07
標籤:UIDatePicker 1 //返回按鈕事件 2 @IBAction func backButtonClick() 3 { 4 self.navigationController?.popViewControllerAnimated(true) 5 } 6 7 8 override func viewDidLoad() { 9 super.viewDidLoad()10
Time of Update: 2015-06-07
標籤:UIPickerView 1 //返回按鈕事件 2 @IBAction func backButtonClick() 3 { 4 self.navigationController?.popViewControllerAnimated(true) 5 } 6 7 var authorsArray:[String]! 8 var appsArray:[String]! 9 10
Time of Update: 2015-06-07
標籤:啟動 開發 核心 boot android 本文是《Android核心開發》系列的第六篇文章,前面的幾篇文章介紹了Android核心開發相關的基礎知識,包括:Android源碼的下載、版本和分支介紹、編譯和燒寫等等,從本文起就要開始真正地進行Android核心的學習及實戰了。學習任何軟硬體系統,研究系統啟動過程都是一種非常
Time of Update: 2015-06-07
標籤:手機維修好掙錢啊 現在 主要是售後很貴的話去店裡修找個技術好的師傅,肯定很多人願意光顧的。中間的利潤很大的。高端貨配件利潤大。 以後我要開個服裝店 鞋店 理髮店 健身房 洗浴中心 遊泳館 水果店 手機店 電腦專賣店 汽車銷售店 我要做股東 說正事 手機摔的一刹那自己覺著和以往一樣都能接受不就是外形難看了點嗎 可以接受。
Time of Update: 2015-06-07
標籤:You do not need to override this method if your view sets its content in other ways.By the time this method is called, UIKit has configured the drawing environment appropriately for your view and you can simply call whatever drawing methods and