I am new to iOS 5, I created in PhoneGap that support for iOS also. I used PhoneGap twitter plugin ( https://github.com/brianantonelli/phonegap-plugins/tree/a5c9d3a806514d1032c0673a9f97aeb3bcefd6bc/iPhone/Twitter ) it is work fine when I did not set Completion Handler. But, I want show alert to user. when setCompletionHandler I am getting Bad access error like this
.
I tried with sample apps with ARC and with out ARC also. But it is not working. Please give a solution for this. Every I am doing wrong.
if I create native app (not PhoneGap app). It works fine.
I fixed it! I’m using PhoneGap with Sharekit 2.0, but I found this helpful advice from a different PhoneGap twitter plugin:
If you have issues with the app crashing with
EXC_BAD_ACCESSon iOS Simulator you may have a weak linking issue.With your project highlighted in the left column in XCode go to Targets > Your Project > Build Settings > Linking > Other Linker Flags and replace
-weak_librarywith-weak-lSystem