原创 sqlite3 not found 解決方案
第一:下載sqlite3和libncurses.so,解壓放到D盤根目錄下(點擊下載) 第二:先把sqlite3和libncurses.so導入到sdcard(命令如下:) adb push d:/sqlite3 /mnt/sdcar
原创 asp.net DataSet 轉換成 excel 表格
第一張方法:public void ExportResult(DataSet ds, string excelName) { HttpContext.Current.Respons
原创 UITextView 實現 placeholder
class ViewController: UIViewController, UITextViewDelegate { let defaultLabel: UILabel = UILabel(frame: CGRectMake(
原创 asp.net 導入excel表格
1、Excel表格 用戶名 密碼 年齡 aaaaaa 111111 18 bbbbbb 111111 19 2、.aspx頁面 <input id="fileUp" type="file" runat="server" /> 3、處理方
原创 常用的iOS第三方資源
常用的iOS第三方資源 原文出自 一:第三方插件 1.基於響應式編程思想的OC 地址:https://github.com/ReactiveCocoa/ReactiveCocoa 2.HUD提示框 地址:https://githu
原创 UINavigation 隱藏方式
UINavigation 隱藏方式 原文出處 1.向上滾動時隱藏NavigationBar override func viewDidAppear(animated: Bool) { super.viewDidAp
原创 下拉放大圖片
設置scrollView(包括其子類)偏移量 tableView.contentInset = UIEdgeInsetsMake(200, 0, 0, 0) 設置圖片frame值,和圖片顯示模式 ImageView.frame = CG
原创 JS判斷div是否在屏幕顯示範圍內,是否滾出屏幕顯示範圍
window.onscroll = function(){} 給滾動條添加滾動監聽事件 $(document).scrollTop(); 獲取滾動的距離 $("#div").offset().top; 獲取div距離頂部的距離 $(win
原创 使用cocoaPods導入第三方庫, import沒有提示
1. import 沒有提示 Build Setting —> 搜索user header search paths —> 添加${PODS_ROOT} —> recursive 如圖: 2. import 提示no such mo
原创 presentViewController延遲跳轉, 或者點擊2次才跳轉
present延遲跳轉, 或者點擊2次才跳轉 解決方案: dispatch_async(dispatch_get_main_queue(), ^{ [self presentViewController: viewControl
原创 iOS開發常用技巧
iOS開發常用技巧 原文出自一 原文出自二 1.返回輸入鍵盤 - (BOOL)textFieldShouldReturn:(UITextField *)textField { [textField resignFirstR
原创 JSQMessagesViewController (一)
集成JSQMessagesViewController Demo下載 如果inputToolbar被鍵盤遮住了 看這裏 第一步 導入JSQMessagesViewController庫 使用cocoapods導入 pod 'J
原创 iOS 打開相機、相冊
iOS打開相機拍照、從相冊選擇照片 Demo下載 1.遵循協議 <UIImagePickerControllerDelegate,UINavigationControllerDelegate> 2.從相冊選擇照片 /** * 從相
原创 asp.net發送電子郵件
asp.net發送電子郵件 /// 發送電子郵件 /// </summary> /// <param name="mailTo">收件人郵箱</param> /// <pa
原创 UITableViewCell自適應高度
在設置使用cell高度自適應的時候, 需要注意的地方: 1. cell裏面的控件約束, 在豎直方向上必須能連接起來 2. cell裏面的控件, 最後一個view需要有bottom的約束 3. 不需要重寫tableView(table