
简介
该用户还未填写简介
擅长的技术栈
可提供的服务
暂无可提供的服务
先在info.list 中设置View controller-based status bar appearance = NO 然后设 状态栏 字体颜色是 白色还是黑色UIApplication.shared.statusBarStyle = UIStatusBarStyle.default; OR UIApplication....
下載位置:https://github.com/robbiehanson/CocoaAsyncSocket使用 AsyncUdpSocket.m 和 AsyncUdpSocket.h因為專案是 Swift 專案,要使用 objecitive-c 的函式庫要在 Header 檔中 import。1. 複製 AsyncUdpSocket.m 和 AsyncUdpSocket.h 到專案中,xcod..
func resizeImage(image: UIImage, newWidth: CGFloat) -> UIImage {let scale = newWidth / image.size.widthlet newHeight = image.size.height * scaleUIGraph...
*** dismiss 后不执行 deinit 原因 分析,如果不执行 会导致 内存得不到释放,1, 本类self 是否 有传入到 其他 类中 。 2, xx.delegate 代理需要在 dismiss 前 = nil ** 代码 控制 IPAD 横竖屏 不起效 , 勾选个 Requires full screen ...
参考: http://www.jianshu.com/p/203a48d64e71代码: https://github.com/cirelir/2DBarcode ViewController.swiftimport UIKitclass ViewController: UIViewController{override func view...
初始化 高度 class KeyboardViewController: UIInputViewController {override func updateViewConstraints() {super.updateViewConstraints()print("view update view");}...
技术方式 圆点坐标:(x0,y0) 半径:r 角度:a0 则圆上任一点为:(x1,y1) x1 = x0 + r * cos(ao * 3.14 /180 ) y1 = y0 + r * sin(ao * 3.14 /180 ) 在 Swift 里 prt_wh = 直径p...
let myWebsite = NSURL(string:"http://baidu.com/")let img: UIImage = #imageLiteral(resourceName: "test1")guard let url = myWebsite else {prin...
一, 在viewDidload() 中 绑定通知,并添加键盘监听其中绑定的 keyboardWillShow 会有动画, KeyboardDidShow 不会有 动画func viewDidload(){NotificationCenter.default.addObserver(self, selector: #selector(PasscodePane.keyboard...
底部弹出菜单 actionSheet 样式 //底部弹窗框let bomAlert = UIAlertController(title: "我是标题", message: "我是描述", preferredStyle: .actionSheet)let cancelAction = UIAlertAction(title...







