原创 iOS實現一個輕微晃動的提示動畫

背景 我們需要用到一個上下輕微晃動的動畫效果,提示有什麼東西,吸引用戶的注意。 方案一 - (UIButton *)moveBtn { if (!_moveBtn) { _moveBtn = [UIButton butt

原创 pod 研究 + Could not build module + 大小寫不敏感

1、Cloning spec repo `cocoapods` from `https://github.com/CocoaPods/Specs.git` 時間很長 我差不多更新了40分鐘,耐心等待。 Downloading depend

原创 NSScanner 學習

文檔學習 A string parser that scans for substrings or characters in a character set, and for numeric values from deci

原创 oc底層原理再總結

oc底層原理學習1、oc對象的本質是什麼沒有繼承的代碼clang獲得實例對象裏面的數據通過runtime獲取到的實例對象裏面的數據總結2、instance 對象是什麼3、Class對象原理是什麼4、meta-class對象5、is

原创 commit 規範文檔

commit 之 Angular 規範 1、commit 基本類型: feat: 新功能(feature) fix: 修改bug docs: 文檔(documentation) style: 格式(不影響代碼運行的變動) ref

原创 研究複雜問題的一般方法

前言 有時候項目中突然出現一個棘手問題,項目又這麼大,似乎不好解決,怎麼定位問題呢? 我的方法步驟 要做事的事 對問題提出儘可能多的猜想,用文檔寫出來,文檔裏分記錄、現象、問題、猜想、結論各個要素。 根據猜想寫一些細小demo。

原创 蘋果審覈被拒(使用js && weex)

被拒圖譜: 1、第一個版本提審的是一個有js更新功能,js以bundle保存於目錄 結果:被拒 2、第二個版本是去掉更新功能,只留本地的功能   結果:                         被拒 3、第三次版本去掉更新功能,去

原创 今年餘下時間的的目標

1、學習會javaScript 2、學習再寫10篇博客 3、學習flutter 4、學習操作系統和CPU

原创 NSURLSession 文檔閱讀部分實踐

1、//下載完成時調用 - (void)URLSession:(NSURLSession *)session downloadTask:(NSURLSessionDownloadTask *)downloadTask didFinishD

原创 Delve into Manage memory Essentials learning(2)

Object Creation and Storage  1、In Objective-C, like any other object-oriented programming language, the object acts lik

原创 shell scripts 學習

學習筆記 1、本教程關注的是 Bash,也就是 Bourne Again Shell Bourne 目的地和邊界 2、./test.sh #執行腳本 3、所以寫成 test.sh 是會找不到命令的,要用 ./test.sh

原创 iOS block 再次探祕

__block 之於數組 加不加block都行,推薦不加 加了只是裏面多了一個結構體,然後發現還是往哪個結構體裏面的arr發消息,不加就是直接給arr發消息 #import <Foundation/Foundation.h>

原创 NSURLConnection 和NSURLSession的不同

Both nsurlsession and nsurlconnection work similarly at high level for most of the part. 大部分相似 nsurlsesion provides

原创 富文本文檔學習

1、minimumLineHeight 文字的最小高度  文字的高度 2、lineSpacing leading 行距 3、paragraphSpacing段落的間距 4、headIndent 首縮進 5、tailInde

原创 NSLayoutManager learning

原文鏈接:https://developer.apple.com/documentation/uikit/nslayoutmanager Overview NSLayoutManager