原创 swift 移除瀏覽器url編碼
解碼方法: removingPercentEncoding string調用 這個方法即可 增加編碼的方法 addingPercentEncoding 方法即可 func urlEncoded() -> String {
原创 int64最大值
int 2147483648~2147483647 unsigned long 0~4294967295 long 2147483648~2147483647 long long的最大值:922337203685477580
原创 快速排序
int partition(int arr[], int left, int right) { int i = left, j = right; int tmp = arr[left]; while (i < j
原创 鏈表找中間數
ListNode* midNodeList(ListNode* head){ ListNode* slow=head; ListNode* fast=head; while (fast&&fast->next){ slow =
原创 單鏈表反轉
pre = null Next = null If (node ==null) Return null while(node ->next){ next = node->next; node->next = pre; pre =
原创 面試答錯了問題,太可惜了,冷靜能分析出來,當時就是緊張,熱。。。
原題是這樣的 dispatch_queue_t queue = dispatch_queue_create("abcqueuue",DISPATCH_QUEUE_SERIAL); // dispatch_queue_t que
原创 swift5.0 SnapKit cocopod 後編譯報錯
嘗試解決的做法 1.確保Build Setings 裏面的 User Header Search Paths 是下面的目錄 $(PROJECT_DIR)/Pods 2.對podfile文件進行修改 在platform 和target之間加
原创 swift nav push控制器隱藏底部 tabbar
required init?(coder aDecoder: NSCoder) { fatalError("init(coder:) has not been implemented") } init(
原创 字符數量限制計算部分
//計算字符個數,一共是5 NSString *string = textView.text; int totalChar = 0; int totalHan = 0; for (int i = 0;
原创 [工程心得]ios工程
1.define時候爲了防止undefine所以最後有個整體規範文檔,介紹define 2.製作前視圖模塊規劃和整理清楚有哪些,統一管理,創作時需和舊的模塊進行對比,減少耦合性,最好用組件化的形式進行管理 3.團隊間需要定期進行coder
原创 自動增加release版本號
if [ $CONFIGURATION == Release ]; then echo "Bumping build number..." plist=${PROJECT_DIR}/${INFOPLIST_FILE} buildnu
原创 UISearchbar 顏色的自定義和圓角樣式的製作
-(UIView *)tableheaderview{ if (!_tableheaderview) { _serarbar = [[UISearchBar alloc] initWithFrame:CGRect
原创 IQKeyboardManager 編譯時期錯誤
/Users/edz/CodeNew Group/HomeViewController.m:14:9: In file included from /Users/edz/Codee/New Group/HomeViewController
原创 objc_getMetaClass在afn1.2.1中的使用
</pre><pre name="code" class="objc">static void AFSwizzleClassMethodWithClassAndSelectorUsingBlock(Class klass, SEL sel
原创 UserNotificationsUI在iOS10.0後出現兼容10.0以下需要 吧這個以來框架設爲optional [dyld_fatal_error]
錯誤表現: 在iOS5.0(任何低於框架需求版本的系統上)上運行,在launch Image的時候直接Crash。 錯誤提示: dyld`dyld_fatal_error: 0x8feb1070: int3 0x8feb