我正在嘗試爲iOS創建一個cordova應用程序。我們也用於android的同一個應用程序。我只是試圖添加iOS插件並啓動應用程序。我在CDVDevice.h
中添加了以下代碼。帶插件的iOS科爾多瓦應用程序
http://developmobilesoftware.blogspot.in/2013/12/the-unique-identifier-in-ios-app-udid.html
我得到例外,我的跟蹤是爲下:
+[CDVDevice uniqueIDForDevice] : unrecognized selector sent to class 0xf30c4
** WebKit discarded an uncaught exception in the webView: decidePolicyForNavigationAction:request:frame:decisionListener:delegate"<NSInvalidArgumentException> +[CDVDevice uniqueIDForDevice]: unrecognized selector sent to class 0xf30c4
請幫助我的新的iOS編程。
謝謝!
謝謝!我很好奇,想知道我的代碼有什麼問題.. [devProps setObject:[[self class] uniqueIDForDevice] forKey:@「uniqueid」]; 這是我試圖訪問該方法,並將其添加到device.js – Programmer
然後張貼您正在使用的整個代碼,而不是鏈接到博客文章 – jcesarmobile
在 - (NSDictionary *)CDVDevice.h的deviceProperties添加了一個行 [devProps setObject:[[self class] uniqueIDForDevice] forKey:@「uniqueid」]; 和device.js me.uniqueid = info.uniqueid; – Programmer