顯示具有 iOS 標籤的文章。 顯示所有文章
顯示具有 iOS 標籤的文章。 顯示所有文章

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*)[someData bytes];

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

2017年4月12日 星期三

[iOS] x duplicate symbols for architecture xxxxxx

x duplicate symbols for architecture xxxxxx

之前有遇到過,有解過,但是忘記

現在記錄下來

是因為import的.h打成.m 所以才會這樣。

2016年3月21日 星期一

[iOS] CIImage to UIImage

作法簡單

如下

UIImage* xxUIImage = [[UIImage alloc] initWithCIImage:xxCIImage];
 
 
即可取得UIImage
  

2016年3月15日 星期二

[iOS] 如何安裝使用Google map sdk

如題

步驟如下

沒有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/

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...