原创 NSString解析成Dictionary

- (NSMutableDictionary *)parseQueryString:(NSString *)query {     NSMutableDictionary *dict = [NSMutableDictionary di

原创 金額大小樣式用例

積累好的東西,以後都是你的,哈哈哈哈哈~~~~ 沉迷技術,無法自拔!!!! 最近在做顯示金額的樣式!!! 以下是方法: #pragma mark - amount style - (void)amountLabelTextFont:(

原创 "WatchKit" is not available when building for iOS. Consider using #if !TARGET_OS_IOS to

error description: a "WatchKit" is not available when building for iOS. Consider using #if !TARGET_OS_IOS to condition

原创 macOS升級10.14.x

  我打開App Store發現操作系統是10.13.6,已經是‘最高版本’,無法升級了。 macOS Mojave的升級連接

原创 webView的高度自適應

- (void)webViewDidFinishLoad:(UIWebView *)webView { //    text center     NSString *bodyStyle = @"document.getElementsB

原创 copy的功能塊

現在接觸的開發項目越來越多了,以前很多就是看過沒有實際應用過的知識都開始又熟悉了起來~~~~~~~ [cell setDidPressToCopy:^{             //copy function             UI

原创 設置timer,用於otp

#pragma mark - Countdown algorithm - (void)setUpTimer {     self.timeLeft = 15; //設置resend按鈕爲隱藏,倒計時label爲顯示,這種倒計時最好是不要用

原创 Date在設置系統地區爲毛里求斯的,12小時制的時候爲 NULL

吐槽:用戶反饋回這個問題的時候,我用測試機測試,沒問題,用自己的機子測試OK,(1)排除新機型帶來的問題。 然後後臺拿到用戶數據,在項目上運行,能顯示。(2)排除數據格式不正確, 開始模擬用戶的數據,人在毛里求斯,設置語言法語,地區毛里求

原创 label在最新iOS系統中顯示不全

上線了很久的項目,突然UI有問題,Label顯示不全,出現... 第一反映還是覺得更新的Xcode以及系統版本問題 果然啊 最新系統的字體比普通系統的要大一點,導致高度一直都不能自適應!!! 解決方法:          [self.pa

原创 ionic的Native

util.js:66 Native: tried calling Device.uuid, but Cordova is not available. Make sure to include cordova.js or run in a

原创 has denied the launch request.

XXXXX has denied the launch request.   重新多多run幾遍

原创 Xcode 10.1 中關於 Error: Multiple commands produce

在Xcode10.1中運行老老項目報錯 Showing All Messages :-1: Multiple commands produce '/Users/admin/Library/Developer/Xcode/DerivedDa

原创 生成隨機九位數

- (NSString *)getRandomMappingId {     NSString *min = @"000000000"; //Get the current text from your minimum and maxim

原创 牛逼的程序員-ionic

https://www.jianshu.com/p/d087eba81eb0

原创 UIWebView存在在AFNetworking,導致APP store不通過

UIWebView存在在AFNetworking,導致APP store不通過~~~~~ 唉唉網上好多方案都不適合我!!!哭嘁嘁 我只寫適合我的吧,參考參考就好啦 解決方案的基本思想就是 remove掉關於所有這個UIWebView的文件