上一页 1 2 3 4 5 6 7 8 9 10 ··· 26 下一页

2018年9月5日

第一次将本地项目同步到git服务器

摘要: 第一次将本地项目同步到git服务器 Last login: Mon Sep 3 09:48:44 on ttys003 localhost:~ dajiang$ cd desktop localhost:desktop dajiang$ cd community localhost:communit 阅读全文

posted @ 2018-09-05 19:38 yucaijiang 阅读(311) 评论(0) 推荐(0) 编辑

OC自定义导航栏背景色和字体颜色

摘要: //导航栏 [self.navigationController.navigationBar setBarTintColor:UIColorFromRGB(0xff542E)]; [self.navigationController.navigationBar setTitleTextAttribu 阅读全文

posted @ 2018-09-05 16:10 yucaijiang 阅读(697) 评论(0) 推荐(0) 编辑

自定义的导航栏颜色有色差解决方法

摘要: self.navigationController.navigationBar.translucent = NO 阅读全文

posted @ 2018-09-05 16:09 yucaijiang 阅读(328) 评论(0) 推荐(0) 编辑

OC生成二维码

摘要: 1.先 #import <CoreImage/CoreImage.h> 2. //本地生成二维码 // 1.创建过滤器 -- 苹果没有将这个字符封装成常量 CIFilter *filter = [CIFilter filterWithName:@"CIQRCodeGenerator"]; // 2. 阅读全文

posted @ 2018-09-05 15:58 yucaijiang 阅读(380) 评论(0) 推荐(0) 编辑

2018年7月17日

iOS开发常用的三方库

摘要: 1.网络请求库 AFNetworking https://github.com/AFNetworking/AFNetworking 2.图片缓存器 SDWebImage https://github.com/rs/SDWebImage 3.下拉刷新上拉加载 MJRefresh https://git 阅读全文

posted @ 2018-07-17 10:59 yucaijiang 阅读(183) 评论(0) 推荐(0) 编辑

2018年1月30日

Swift - 让textview支持特殊标签点击响应

摘要: 有使用过新浪微博会发现,微博对发送的消息提供了几个特殊符号标签。比如:输入“@+微博用户昵称(即ID)+空格或标点”,那么在这条微博中这个@条目就会表现成超链接形式,点击即可跳转到被@的某人的微博。 又比如话题标签“#+关键字+#”。表现形式就是点击后会跳转到包含该关键字的微博的搜索结果页面的超链接 阅读全文

posted @ 2018-01-30 18:18 yucaijiang 阅读(539) 评论(0) 推荐(0) 编辑

Swift - 打开第三方应用,并传递参数

摘要: 一,使用样例 常用的第三方应用都定义了不同的 URL Scheme,我们通过 UIApplication.shared.open() 方法打开相应的链接,即可跳转到对应的 App 中。(iOS10 以下的系统则是使用 UIApplication.shared.openURL() 方法) 1,打开淘宝 阅读全文

posted @ 2018-01-30 15:59 yucaijiang 阅读(576) 评论(0) 推荐(0) 编辑

Swift - 判断设备方向

摘要: import UIKit class ViewController: UIViewController { @IBOutlet weak var orientationLabel: UILabel! override func viewDidLoad() { super.viewDidLoad() 阅读全文

posted @ 2018-01-30 10:57 yucaijiang 阅读(287) 评论(0) 推荐(0) 编辑

Swift - 手机摇晃的监测和响应

摘要: import UIKit class ViewController: UIViewController { override func viewDidLoad() { super.viewDidLoad() } //开始摇晃 override func motionBegan(motion: UIE 阅读全文

posted @ 2018-01-30 10:56 yucaijiang 阅读(216) 评论(0) 推荐(0) 编辑

Swift - AppDelegate.swift类中默认方法的介绍

摘要: 1,应用程序第一次运行时执行 这个方法只有在App第一次运行的时候被执行过一次,每次App从后台激活时都不会再执行该方法。 (注:所有一般我们都在这里获取用户许可,比如本地消息推送的许可等) 1 2 3 4 func application(application: UIApplication, d 阅读全文

posted @ 2018-01-30 10:53 yucaijiang 阅读(211) 评论(0) 推荐(0) 编辑

上一页 1 2 3 4 5 6 7 8 9 10 ··· 26 下一页

导航