Require CoreTelephony Basic Examples

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?

+3
5

. , , CTTelephoneCenterGetDefault():

id CTTelephonyCenterGetDefault();

( - CTTelephonyCenterAddObserver(), )

+3

- , , API - - ?

+1

" " , .

, , , .

, - main.m iPhone. UIApplication. applicationDidFinishLaunching:.

0

http://www.alexwhittemore.com/?p=281 - Tool Chain 3.0 sdk ( , ) - CoreTelephony - Xcode's/SDK

0

coretelephonyframework !

0

Source: https://habr.com/ru/post/1740784/


All Articles