摘要:
Error: No architectures to compile for (ONLY_ACTIVE_ARCH=YES, active arch=x86_64, VALID_ARCHS=arm64 arm64e, EXCLUDED_ARCHS=( arm64)). Solution: Remove 阅读全文
摘要:
1. local git initgit add .git commit -m "init project" 2. remote New repository 3. local git remote add origin git@github.com:USER_NAME/PROJECT_NAME.g 阅读全文
摘要:
给view加一个点击事件,点击时收起键盘: override func viewDidLoad() { super.viewDidLoad() let tap = UITapGestureRecognizer(target: self, action: #selector(self.dismissK 阅读全文
摘要:
自定义按钮类型CustomButton,继承UIButton,重写pointInside函数改变点击响应范围。 例如,按钮点击范围比实际高度上下增加6。 CustomButton.h CustomButton.m 阅读全文
摘要:
Error: 2019-11-24 22:16:01.047997+0800 SingleViewDemo[22576:34699748] Unknown class FeedbackCell in Interface Builder file. 2019-11-24 22:16:01.058953 阅读全文
摘要:
重点: 在scroll view和stack view之间加一个UIView。 竖向居中Tutorial: https://stackoverflow.com/questions/50766400/center-uiview-vertically-in-scroll-view-when-its-dy 阅读全文
摘要:
https://medium.com/@mufakkharulislamnayem/scrolling-in-a-horizontal-uistackview-with-storyboard-e02a9aab555b 阅读全文
摘要:
一、对C的扩展 1. #import VS #include C语言使用#include语句通知编译器应在头文件中查询定义。 OC中也可以使用#include,但几乎不这么用,而是使用#import。 #import <Foundation/Foundation.h> (查看Foundation框架 阅读全文
摘要:
var startTime = DateTime.UtcNow.ToString(timeFormat); var endTime = DateTime.Today.AddDays(1).AddSeconds(-1).ToUniversalTime().ToString(timeFormat); 阅读全文
摘要:
List<string> names = new List<string>() { "John", "Anna", "Monica" }; var result = String.Join(", ", names.ToArray()); 阅读全文