Welcome all.
Does anyone have a working example for a CoreTelephony framework? I reset all CoreTelephony headers using the dump class and added them to "/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS3.1.3.sdk/System/Library/PrivateFrameworks/CoreTelephony.framework". Now I follow the Erica tutorial ( http://blogs.oreilly.com/iphone/2008/08/iphone-notifications.html ).
I added the following lines of code to my main.m,
id ct = CTTelephonyCenterGetDefault();
CTTelephonyCenterAddObserver(
ct,
NULL,
callback,
NULL,
NULL,
CFNotificationSuspensionBehaviorHold);
but I get a warning
Implicit declaration of the function "CTTelephonyCenterGetDefault ()" and "CTTelephonyCenterAddObserver (...)".
Can anyone have a complete working example that will explain how to get CoreTelepony notifications?