forked from MQZHot/DaisyNet
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
8 changed files
with
101 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file modified
BIN
+10.5 KB
(100%)
DaisyNet.xcworkspace/xcuserdata/mengqingzheng.xcuserdatad/UserInterfaceState.xcuserstate
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
// | ||
// UploadViewController.swift | ||
// DaisyNet | ||
// | ||
// Created by mengqingzheng on 2017/12/17. | ||
// Copyright © 2017年 MQZHot. All rights reserved. | ||
// | ||
|
||
import UIKit | ||
|
||
|
||
|
||
class UploadViewController: UIViewController { | ||
|
||
override func viewDidLoad() { | ||
super.viewDidLoad() | ||
|
||
|
||
} | ||
|
||
@IBAction func photoBrowser(_ sender: UIBarButtonItem) { | ||
if UIImagePickerController.isSourceTypeAvailable(.photoLibrary){ | ||
let picker = UIImagePickerController() | ||
picker.delegate = self | ||
picker.sourceType = .photoLibrary | ||
present(picker, animated: true, completion: nil) | ||
}else{ | ||
print("读取相册错误") | ||
} | ||
} | ||
} | ||
extension UploadViewController: UIImagePickerControllerDelegate,UINavigationControllerDelegate { | ||
|
||
} |