
iOS
RodrickOMG
这个作者很懒,什么都没留下…
展开
-
[SwiftUI]在SwiftUI中使用UIView和UIViewController
SwiftUI is an innovative, exceptionally simple way to build user interfaces across all Apple platforms with the power of Swift. Build user interfaces for any Apple device using just one set of tools ...原创 2020-05-07 10:50:31 · 8551 阅读 · 1 评论 -
[SwiftUI]通过NavigationLink进入另一页面时视图会向上弹的修复方法
SwiftUI取消了Swift ViewController中的present方法,取而代之的是NavigationLink,然而NavigationLink使用中还是会存在一些问题。其默认情况便是有NavigationBar和Title,然而很多时候我们选择的是自定义的NavigationBar和Title。而有些时候会出现通过NavigationLink跳转后页面向上跳一下的情况,可通过下述方...原创 2020-03-05 10:17:24 · 3535 阅读 · 2 评论 -
【iOS】调用实时摄像头图像识别
SqueezeNetA small Deep Neural Network architecture that classifies the dominant object in a camera frame or image.模型下载:https://developer.apple.com/machine-learning/models/let captureSession = AVCap...原创 2019-08-14 13:31:14 · 1883 阅读 · 0 评论 -
【iOS】scrollView无法滚动解决方法
class LibraryViewController: UIViewController, UIScrollViewDelegate,UICollectionViewDelegate, UICollectionViewDataSource { lazy var scrollView: UIScrollView = { let scroll = UIScrollView()...原创 2019-08-14 14:15:11 · 1895 阅读 · 0 评论 -
【iOS】根据不同的设备方向设置不同的label格式
参考:Stanford Swift CS193P 10.Multithreading and Autolayoutprivate func updateFlipCountLabel() { let attributes: [NSAttributedStringKey:Any] = [ .strokeWidth : 5.0 .strokeColor : black ] let att...原创 2019-08-19 19:30:32 · 212 阅读 · 0 评论