65.iOS下面LKDatabase 匯出和檢視
一 .匯出
xcode->window->devices and Simulators
在Name裡面選中自己專案
然後點選那個有點像設定的圖示,選擇 Download Container...
二. 檢視資料庫
2.1.cd到檔案匯出目錄,進去匯出的資料夾->cd AppData/Documents/LKHTest,然後可以看到LK的db檔案,如下:
2.2 開啟db檔案
命令列輸入 sqlite3 lkdbhelperTest.db
當然也可以用資料庫檢視工具開啟
三. 基本sqlite3語法
.exit .help 檢視幫助 針對命令 .database 顯示資料庫資訊;包含當前資料庫的位置 .tables 或者 .table 顯示錶名稱 沒有表則不顯示 .schema 命令可以檢視建立資料物件時的SQL命令; select * from tbl_xxx;
相關推薦
65.iOS下面LKDatabase 匯出和檢視
一 .匯出 xcode->window->devices and Simulators 在Name裡面選中自己專案 然後點選那個有點像設定的圖示,選擇 Download Container... 二. 檢視資料庫 2.1.cd到檔案匯出目錄,進去匯出的資料夾->cd AppData
iOS開發:第一個iOS程式分析——AppDelegate.h檔案和檢視View、檢視控制器ViewController
在上一篇文章iOS開發:第一個iOS程式分析——代理,生命週期函式中主要介紹了iOS使用Objective-C開發的兩個主要檔案main.m和AppDelegate.m和控制程式生命週期的函式,接下來將介紹另外兩個檔案:AppDelegate.h檔案、UIViewController.m檔案和i
IOS學習之Tab Bar的使用和檢視切換
在ios的程式中,Tab Bar的使用率很高,幾個檢視需要切換的時候,就用到tabbar。 今天的程式實現的效果是這樣的,底部有幾個tab Item,對應的有幾個檢視,切換tab Item,切換到對應的檢視。 實現效果如下: 為了更好理解使用用tabbar和切換檢視,我們建立一個Empty Applic
Postman使用手冊1——匯入匯出和傳送請求檢視響應
導讀: 現在的web和移動開發,常常會呼叫伺服器提供restful介面進行資料請求,為了除錯,一般會先用工具進行測試,通過測試後才開始在開發中使用。這裡介紹一下如何在chrome瀏覽器利用postman應用進行restful api介面請求測試。 一、匯入匯出打包的應
iOS 獲取導航欄和狀態欄的高度
bsp statusbar pan frame bar gin cgrect tom uia CGRect rect = [[UIApplication sharedApplication] statusBarFrame]; 狀態欄的高度: float status
IOS 靜態庫的和.framework制作
https works select 其它 開源庫 sta cat neo working 什麽是庫? 庫是程序代碼的集合,是共享程序代碼的一種方式 根據源代碼的公開情況,庫可以分為2種類型 開源庫 公開源代碼,能看到具體實現 比如SDWebImage、AFNetwor
IOS http(上傳和下載)
fig pla nil style span atof port use userinfo HttpTool.h #import <Foundation/Foundation.h> typedef void (^HttpToolProgressBlock
iOS-swift-函數和閉包
let sda rem blog ios div cond 一個 功能 一、函數 關鍵字:func 參數列表用 , 分割 使用 -> 分割參數和返回值 1 func greet(person: String, day: String)
iOS-swift-枚舉和結構體
枚舉 queen def esc cas int 最大 log style 1.枚舉 使用關鍵字 enum 創 建枚舉。 枚舉默認起始值為 0,可以自定義起始值。 在枚舉中可以定義方法,和類中定義的一樣。 使用關鍵字 rawValue 訪問當
iOS發布證書和描述文件申請
需要 如果 蘋果 idt onload 證書 afa store 下載 iOS發布證書 用於發布到App Store,只有用iOS發布證書打包的IPA才能上架到蘋果應用市場。 如果要真機調試請看發布iOS調試證書的創建教程。 iOS真機調試介紹 一、創建iOS發布證書 i
Hbuilder開發app時生成ios要的mobileprovision和p12文件步驟.
。。 hbuilder p12 mob req mobile 右擊 文件下載 鑰匙 1.在MAC電腦.鑰匙串串訪問->證書助理->從證書頒發機構請求證書,創建一個證書為certSigningRequest文件 2.在Apple Developer中的Certi
iOS 設置 AppIcon 和 LaunchImage
mage sca trait pro ati 尺寸 dsc ipa cap 1、AppIcon 尺寸 iPhone Notification iOS 7-10 20pt 2x( 40x40 ) 3x( 60x60 )
IOS objc_msgSend 32位和64位
padding com cto style else 執行 蘋果官方 sele orm objc_msgSend(obj,normalSelector,command) 只支持32位如果在64位可能出現類的賦值出錯 如: 假如 obj 是CDVPlugin類 normalS
65.shell特殊符號與和cut,sort,wc,uniq,tee,tr,split命令
character 刪除重復的字符 處理 將他 語法 去重 截取 通用 統計字符數 liunx的特殊符號 代表字母或者數字 多個 ? 任意一個字符"#" 註釋\ 脫義字符| 管道符 1.* 代表任意個任意字符或者數字 [root@l
使用OCLint和Sonar對iOS代碼分析和質量管理
環境 測試 版本 ann true onf brew Coding 模板 OCLint 是一個強大的靜態代碼分析工具,可以用來提高代碼質量,查找潛在的bug,主要針對c,c++和Objective-c的靜態分析。 Sonar 是一個用於代碼質量管理的開放平臺。通過插件機制,
iOS NSURLProtocol詳解和應用
com string handle gist mutable 註冊 header rec canonical 問題:因dns發生域名劫持 需要手動將URL請求的域名重定向到指定的IP地址 最近在項目裏由於電信那邊發生dns發生域名劫持,因此需要手動將URL請求的域名
iOS-TableView重用原理和註意點
就會 view重用 完全 次數 tableview table AR not 避免 什麽是cell的重用?# 重用機制,簡單的說意思是一行一行cell的復用 為什麽要實現重用?# 為了做到顯示和數據分離, 通過重用單元格來達到節省內存的目的(一個屏幕顯示的cell
【iOS】淺拷貝和深拷貝
簡單 HR 除了 深淺拷貝 感謝 with 分配 指針 object 淺拷貝和深拷貝 淺拷貝即指針拷貝,可以認為是給一只狗加了一條繩子;深拷貝不但拷貝了對象的指針,還在系統中在分配了一塊內存用來存放拷貝對象的內容,可以認為是產生了一條帶繩子的新狗。即淺拷貝是兩根繩子一條狗
Go基礎系列:struct的匯出和暴露問題
struct的匯出和暴露問題 關於struct的匯出 struct的屬性是否被匯出,也遵循大小寫的原則:首字母大寫的被匯出,首字母小寫的不被匯出。 所以,如果struct名稱首字母是小寫的,這個struct不會被匯出。連同它裡面的欄位也不會匯出,即使有首字母大寫的欄位名。 如果struct名稱首字母大
iOS開發移除子檢視控制器
OC語法中沒有直接移除子檢視的方法,但是可以通過查詢子檢視來移除 for(UIView *view in [self.view subviews]) { [view removefromsuperview] } 來點直接的:實際上是用了NSArray的mak