原创 ios UITextField和UITextView 鍵盤添加“完成”按鈕
效果圖: 分別寫一個類繼承與UITextField和UITextView,現在以UITextField爲列,UITextView同理 CustomizeTextField.h #import <UIKit/UIKit.h> NS_A
原创 iOS AppSotre相關接口
獲取app的相關json信息:https://itunes.apple.com/cn/lookup?id=xxxx 跳轉AppSotre的URL:https://apps.apple.com/cn/app/idxxxx
原创 js 環形漸變顏色進度條
效果圖: 代碼: CircularProgressBar.js function CircularProgressBar(id) { var canvas = document.getElementById(id); var ct
原创 基於html5+ 高德地圖JS API使用安卓定位sdk用來進行定位
使用Native.js打開Android的H5輔助定位 mui.plusReady(function() { if(plus.os.name == 'Android') { var AMapLocationClient =
原创 ios 關於適配劉海屏
ScreenTool.h #import <Foundation/Foundation.h> #import <UIKit/UIKit.h> #define ViewSafeAreaInsets(view) [ScreenToolSh
原创 ios 關於版本更新和判斷蘋果是否在審覈,獲取版本信息不準的說明
獲取app在 App Store上的json信息url 國外:https://itunes.apple.com/lookup?id=xxx 國內:https://itunes.apple.com/cn/lookup?id=xxx 首先講下
原创 ios 預編譯.h文件
1.新建pch文件 // // PrefixHeader.pch // ShanXi // // Created by apple on 2019/4/1. // Copyright © 2019年 suncere. All
原创 ios WKWebView js和OC交互
// // ViewController.m // oc_js_html // // Created by apple on 2019/3/11. // Copyright © 2019年 suncere. All rights
原创 ios 加載本地html及資源文件
把本地html目錄添加到xcode html資源顯示藍色文件夾 WKWebView加載本地html資源 NSString *filePath = [[NSBundle mainBundle] pathForResource:@"
原创 ios UITableView 解決刷新單個cell,UITableViewRowAnimationNone還有動畫的情況
//這樣寫可能會有動畫情況 [self.tableView reloadRowsAtIndexPaths:@[[NSIndexPath indexPathForRow:1 inSection:0]] withRowAnimati
原创 ios 佔位符
整型佔位符說明 : %d : 十進制整數, 正數無符號, 負數有 "-" 符號; %o : 八進制無符號整數, 沒有 0 前綴; %x : 十六進制無符號整數, 沒有 0x 前綴; %u : 十進制無符號整數; %zd N
原创 ios真機 文件共享 查看沙盒目錄
真機調試如何查看沙盒目錄的文件 方法: 第一步:在 Info.plist 文件中添加UIFileSharingEnabled(Application supports iTunes file sharing)這個Key, 並設置該值爲 Y
原创 ios SVProgressHUD 有時候彈窗不居中
之所以彈窗不居中,是因爲做了鍵盤高度判斷 解決辦法: 打開SVProgressHUD.m
原创 終極跨平臺解決方案,開發一次全端覆蓋,iOS、Android、小程序、H5都有了!
終極跨平臺解決方案,開發一次全端覆蓋,iOS、Android、小程序、H5都有了! uni-app專題頁 :https://uniapp.dcloud.io