Swift
xinlindezhuangyuan
这个作者很懒,什么都没留下…
展开
-
iOS lb: framework not found Pods_Alamofire___ 的解决办法
解决方法:1.项目蓝色图标->Targets->General->Linked Frameworks and Libraries2.删除 Pods_Alamofire___.frameworks转载 2021-02-19 02:45:55 · 302 阅读 · 0 评论 -
Swift cocopos pod install报错
[!] Automatically assigning platform `iOS` with version `14.2` on target `项目名称` because no platform was specified. Please specify a platform for this target in your Podfile. See `https://guides.cocoapods.org/syntax/podfile.html#platform`.这个问题是把#platfo.原创 2021-02-19 01:42:24 · 307 阅读 · 0 评论 -
Swift 给视图添加边框,给图像视图添加圆角效果,给图像视图添加阴影效果
// MARK:给视图添加边框,给图像视图添加圆角效果,给图像视图添加阴影效果 private func addLayer(){ let img = UIImage(named: "image") let imgView = UIImageView(frame: CGRect(x: 24, y: 88, width: 300, he...原创 2018-10-26 15:05:37 · 536 阅读 · 0 评论 -
Swift CGAffineTransform仿射变换的使用
// MARK:CGAffineTransform仿射变换的使用 private func useCGAffineTransformAction(){// 使用视图对象的仿射变换的功能,旋转UIView视图 let view = UIView(frame: CGRect(x: 50, y: 150, width: 200, heig...原创 2018-10-26 15:06:43 · 1302 阅读 · 0 评论 -
Swift 手势单击,双击,长按
// MARK:tapGestureRecognizer手势之单击 private func tapGestureRecognizerAction(){ let rect = CGRect(x: 32, y: 80, width: 256, height: 256) let image = UIImage(named: "image") ...原创 2018-10-26 15:09:39 · 2302 阅读 · 0 评论 -
Swift 使用UISCrollView展示多个视图控制
import UIKit class PageViewController: UIViewController,UIScrollViewDelegate { var scrollView = UIScrollView() var pageControl = UIPageControl() var isPageControlUse = false //...原创 2018-10-26 15:15:11 · 891 阅读 · 0 评论 -
iOS App的生命周期
func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool {// ** 你可以把程序载入后执行的代码,写在程序完成加载的方法里面,这是最常用的一个方法...原创 2018-10-24 11:57:55 · 452 阅读 · 0 评论 -
swift 读取info.plist文件中的信息
//在顶部状态栏显示风火轮(iPhonex之后没有好像) UIApplication.shared.isNetworkActivityIndicatorVisible = true // 读取info.plist中的信息 let mainBundle = Bundle.main let identifer = mainB...原创 2018-10-24 12:59:30 · 1887 阅读 · 0 评论 -
Alamofire框架的使用一 —— 基本用法
【iOS开发】Alamofire框架的使用一 —— 基本用法 Lebron_James 关注2017.03.02 07:23* 字数 3676 阅读 21989评论 17喜欢 58最近发现在百度搜索Alamofire的使用,这篇文章排在第一的位置,瞬间觉得非常有必要及时更新下。如果发现有错误,请及时指出。谢谢!最近更新日期:2018年4月17日。另外本人的新文章已经不在简书更新...转载 2018-12-10 17:54:15 · 615 阅读 · 0 评论 -
C语言中的floor(), ceil(),round()
2018年07月09日 19:31:04 北方爷们 阅读数:738########################################################################## 头文件:include < math.h >函数形式:double ceil(X); double round(X); double round(X);...转载 2019-01-10 11:45:49 · 547 阅读 · 0 评论 -
Swift4.0 数组的常用详解
//创建数据的几种方式var someArray1 = [String](repeatElement("123", count: 3)) //类型是字符串,默认是123 长度是3var someArray2 = ["123","123","123"]var someArray3 : [String]=["123","123","123"]//var nu转载 2018-08-31 12:41:15 · 1446 阅读 · 0 评论