2017年9月12日 星期二
Undefined symbols for architecture arm64: "_VTDecompressionSessionCreate", referenced from:
If you integrate MobileVLCKit to your app, and found you have this hints..
Undefined symbols for architecture arm64:
"_VTDecompressionSessionCreate", referenced from:
Like bellow....
Then, you should add VideoToolbox.framework, libz.tbd, libbz2.tbd, libiconv.tbd, CoreMedia.framework to your "linked frameworks and libraries".
2017年4月27日 星期四
[iOS] How to read byte in NSData?
如何從NSData讀Byte?
NSData * theData = [NSData dataWithContentsOfFile: path];
const char* theBytes = (const char*)[theData bytes];
那讀幾個Byte?
NSRange range = NSMakeRange(location, length);
NSData *someData = [theData subdataWithRange:range];const char* theBytes = (const char*)[someDatabytes];
2017年4月25日 星期二
[iOS] The color of the back barbutton in Navigationbar.
Try to set this.
self.navigationController.navigationBar.tintColor
not
self.navigationItem.backBarButtonItem.tintColor
self.navigationController.navigationBar.tintColor
not
self.navigationItem.backBarButtonItem.tintColor
2017年4月12日 星期三
[iOS] x duplicate symbols for architecture xxxxxx
x duplicate symbols for architecture xxxxxx
之前有遇到過,有解過,但是忘記
現在記錄下來
是因為import的.h打成.m 所以才會這樣。
之前有遇到過,有解過,但是忘記
現在記錄下來
是因為import的.h打成.m 所以才會這樣。
2016年3月22日 星期二
Google map sdk 的GMSMarker如何在一開始show的時候就顯示title及info?
使用[GoogleMapView setSelectedMarker:YourMarker];
即可
2016年3月21日 星期一
[iOS] CIImage to UIImage
作法簡單
如下
如下
UIImage* xxUIImage = [[UIImage alloc] initWithCIImage:xxCIImage];
即可取得UIImage
2016年3月15日 星期二
[iOS] 如何安裝使用Google map sdk
如題
步驟如下
沒有cocoapods的就用以下的指令安裝,有的就跳過
接下來新開一個專案
用console輸入命令cd到專案的資料夾下
vim 新增一個Podfile
內容如下
source 'https://github.com/CocoaPods/Specs.git'
platform :ios, '8.1'
pod 'GoogleMaps'
存檔
接下來指令是
pod install
等待安裝完,開啟.workspace的檔案即可
步驟如下
沒有cocoapods的就用以下的指令安裝,有的就跳過
sudo gem install cocoapods
接下來新開一個專案
用console輸入命令cd到專案的資料夾下
vim 新增一個Podfile
內容如下
source 'https://github.com/CocoaPods/Specs.git'
platform :ios, '8.1'
pod 'GoogleMaps'
存檔
接下來指令是
pod install
等待安裝完,開啟.workspace的檔案即可
[iOS]CoreLocation使用時callback沒有被呼叫,也沒有詢問使用者權限的問題。
問題如題
解法如下:
如果確定delegate都設定好了,
那請去info.list內新增一個row
輸入key名稱為"NSLocationWhenInUseUsageDescription"或"NSLocationAlwaysUsageDescription"
在App開始時就會詢問了。
參考連結
http://nevan.net/2014/09/core-location-manager-changes-in-ios-8/
解法如下:
如果確定delegate都設定好了,
那請去info.list內新增一個row
輸入key名稱為"NSLocationWhenInUseUsageDescription"或"NSLocationAlwaysUsageDescription"
在App開始時就會詢問了。
參考連結
http://nevan.net/2014/09/core-location-manager-changes-in-ios-8/
訂閱:
文章 (Atom)
Class has no initializers in swift
Class has no initializers in swift I have met this situation. Found a solution here It says if you have the code like bellow var se...
-
用java 在windows 執行指令(如:dir這些指令)的時候,發生 以下這錯誤該怎麼辦? java.io.ioexception cannot run program createprocess error 193 剛剛google 了一下 只要把程式碼內的 p = run...
-
安裝完archlinux後grub2找不到windows 7?該怎麼辦? 我在電腦內有win7, 我想試試雙系統~ 安裝完後找不到win7!! 解法 再輸入一次看看吧~ #grub-mkconfig -o /boot/grub/grub.cfg 就可以看到...
