¡@

Home 

2014/10/15 ¤U¤È 10:11:21

iphone Programming Glossary: message

How do I record audio on iPhone with AVAudioRecorder?

http://stackoverflow.com/questions/1010343/how-do-i-record-audio-on-iphone-with-avaudiorecorder

err code err userInfo description UIAlertView alert UIAlertView alloc initWithTitle @ Warning message err localizedDescription delegate nil cancelButtonTitle @ OK otherButtonTitles nil alert show alert.. if audioHWAvailable UIAlertView cantRecordAlert UIAlertView alloc initWithTitle @ Warning message @ Audio input hardware not available delegate nil cancelButtonTitle @ OK otherButtonTitles nil cantRecordAlert..

AES Encryption for an NSString on the iPhone

http://stackoverflow.com/questions/1400246/aes-encryption-for-an-nsstring-on-the-iphone

with AES256 encryption. I want to write a method which takes two NSString instances one being the message to encrypt and the other being a 'passcode' to encrypt it with I suspect I'd have to generate the encryption..

Detecting which UIButton was pressed in a UITableView

http://stackoverflow.com/questions/1802707/detecting-which-uibutton-was-pressed-in-a-uitableview

buttonPressedAction id sender UIButton button UIButton sender how do I know which button sent this message processing button press for this row requires an indexPath. What's the standard way of doing this Edit..

Send and receive messages through NSNotificationCenter in Objective-C? [closed]

http://stackoverflow.com/questions/2191594/send-and-receive-messages-through-nsnotificationcenter-in-objective-c

and receive messages through NSNotificationCenter in Objective C closed I need a simple example program to send and receive.. NSNotificationCenter in Objective C closed I need a simple example program to send and receive a message through NSNotificationCenter in Objective C iphone objective c ios nsnotificationcenter share improve..

How to store custom objects in NSUserDefaults

http://stackoverflow.com/questions/2315948/how-to-store-custom-objects-in-nsuserdefaults

Attempt to insert non property value ' Player 0x3b0cc90 ' of class 'Player'. That is the error message I get when I put my custom class Player in the NSUserDefaults. Now I've read up that apparently NSUserDefaults..

How can I send mail from an iPhone application

http://stackoverflow.com/questions/310946/how-can-i-send-mail-from-an-iphone-application

First add the framework and import #import MessageUI MFMailComposeViewController.h Then to send a message MFMailComposeViewController controller MFMailComposeViewController alloc init controller.mailComposeDelegate..

Prefixing property names with an underscore in Objective C [duplicate]

http://stackoverflow.com/questions/3521254/prefixing-property-names-with-an-underscore-in-objective-c

that's the pattern they expect you to follow. No matter what since objects still have to send messages to themselves to access properties it's hard to confuse when you're accessing a property or when you're.. though using the 2.0 dot access to properties does make it more possible. Using the standard message passing syntax makes intent more explicit IMO. @interface Foo NSObject NSNumber bar @property readwrite..

How do you beta test an iphone app?

http://stackoverflow.com/questions/40154/how-do-you-beta-test-an-iphone-app

Step A Add devices to the Provisioning Portal Send an email to each beta tester with the following message To get my app on onto your iPhone I need some information about your phone. Guess what there is an app..

iOS: how to perform an HTTP POST request?

http://stackoverflow.com/questions/5537297/ios-how-to-perform-an-http-post-request

didFailWithError NSError error UIAlertView alloc initWithTitle NSLocalizedString @ Error @ message error localizedDescription delegate nil cancelButtonTitle NSLocalizedString @ OK @ otherButtonTitles..

How do I create delegates in Objective-C?

http://stackoverflow.com/questions/626898/how-do-i-create-delegates-in-objective-c

side it probably has code similar to this to see if the delegate responds to the windowDidMove message using respondsToSelector and send it if appropriate. if self delegate respondsToSelector @selector windowDidMove.. Optimizations Instead of checking whether a delegate responds to a selector every time we want to message it you can cache that information when delegates are set. One very clean way to do this is to use a.. @selector something didFailWithError @end Then in the body we can check that our delegate handles messages by accessing our delegateRespondsTo struct rather than by sending respondsToSelector over and over..

Locking the Fields in MFMailComposeViewController

http://stackoverflow.com/questions/6284599/locking-the-fields-in-mfmailcomposeviewcontroller

overlay so the user knows whats going on in the background. self createWaitOverlay the guts of the message. SKPSMTPMessage testMsg SKPSMTPMessage alloc init testMsg.fromEmail @ youremail@email.com testMsg.toEmail.. nil testMsg.parts NSArray arrayWithObjects plainPart nil testMsg send void messageSent SKPSMTPMessage message message release message has been successfully sent . you can notify the user.. testMsg.parts NSArray arrayWithObjects plainPart nil testMsg send void messageSent SKPSMTPMessage message message release message has been successfully sent . you can notify the user of that and remove the..

performSelector may cause a leak because its selector is unknown

http://stackoverflow.com/questions/7017281/performselector-may-cause-a-leak-because-its-selector-is-unknown

consumed parameters and if the method consumes the parameter you'll probably eventually send a message to a zombie and crash. There are ways to work around this with bridged casting but really it'd be better..

How to use NSURLConnection to connect with SSL for an untrusted cert?

http://stackoverflow.com/questions/933331/how-to-use-nsurlconnection-to-connect-with-ssl-for-an-untrusted-cert

challenge Note that connection didReceiveAuthenticationChallenge can send its message to challenge.sender much later after presenting a dialog box to the user if necessary etc. share improve..

How do I record audio on iPhone with AVAudioRecorder?

http://stackoverflow.com/questions/1010343/how-do-i-record-audio-on-iphone-with-avaudiorecorder

error err if recorder NSLog @ recorder @ d @ err domain err code err userInfo description UIAlertView alert UIAlertView alloc initWithTitle @ Warning message err localizedDescription delegate nil cancelButtonTitle @ OK otherButtonTitles nil alert show alert release return prepare to record recorder setDelegate self.. YES BOOL audioHWAvailable audioSession.inputIsAvailable if audioHWAvailable UIAlertView cantRecordAlert UIAlertView alloc initWithTitle @ Warning message @ Audio input hardware not available delegate nil cancelButtonTitle @ OK otherButtonTitles nil cantRecordAlert show cantRecordAlert release return start recording..

AES Encryption for an NSString on the iPhone

http://stackoverflow.com/questions/1400246/aes-encryption-for-an-nsstring-on-the-iphone

another string with the encrypted data I've been trying with AES256 encryption. I want to write a method which takes two NSString instances one being the message to encrypt and the other being a 'passcode' to encrypt it with I suspect I'd have to generate the encryption key with the passcode in a way that can be reversed..

Detecting which UIButton was pressed in a UITableView

http://stackoverflow.com/questions/1802707/detecting-which-uibutton-was-pressed-in-a-uitableview

be able to somehow tag the indexPath onto the control. void buttonPressedAction id sender UIButton button UIButton sender how do I know which button sent this message processing button press for this row requires an indexPath. What's the standard way of doing this Edit I've kinda solved it by doing the following. I would still..

Send and receive messages through NSNotificationCenter in Objective-C? [closed]

http://stackoverflow.com/questions/2191594/send-and-receive-messages-through-nsnotificationcenter-in-objective-c

and receive messages through NSNotificationCenter in Objective C closed I need a simple example program to send and receive a message through NSNotificationCenter in Objective C .. and receive messages through NSNotificationCenter in Objective C closed I need a simple example program to send and receive a message through NSNotificationCenter in Objective C iphone objective c ios nsnotificationcenter share improve this question @implementation TestClass void dealloc..

How to store custom objects in NSUserDefaults

http://stackoverflow.com/questions/2315948/how-to-store-custom-objects-in-nsuserdefaults

but this isn't working. NSUserDefaults setObject forKey Attempt to insert non property value ' Player 0x3b0cc90 ' of class 'Player'. That is the error message I get when I put my custom class Player in the NSUserDefaults. Now I've read up that apparently NSUserDefaults only stores some types of information. So how an..

How can I send mail from an iPhone application

http://stackoverflow.com/questions/310946/how-can-i-send-mail-from-an-iphone-application

protocol that is tucked away in the MessageUI framework. First add the framework and import #import MessageUI MFMailComposeViewController.h Then to send a message MFMailComposeViewController controller MFMailComposeViewController alloc init controller.mailComposeDelegate self controller setSubject @ My Subject controller..

Prefixing property names with an underscore in Objective C [duplicate]

http://stackoverflow.com/questions/3521254/prefixing-property-names-with-an-underscore-in-objective-c

access the ivar with the same name as the property indicates that's the pattern they expect you to follow. No matter what since objects still have to send messages to themselves to access properties it's hard to confuse when you're accessing a property or when you're accessing its backing ivar directly though using the 2.0.. a property or when you're accessing its backing ivar directly though using the 2.0 dot access to properties does make it more possible. Using the standard message passing syntax makes intent more explicit IMO. @interface Foo NSObject NSNumber bar @property readwrite retain NSNumber bar @end @implementation Foo @synthesize..

How do you beta test an iphone app?

http://stackoverflow.com/questions/40154/how-do-you-beta-test-an-iphone-app

You can run the app on your own iPhone through Xcode. Step A Add devices to the Provisioning Portal Send an email to each beta tester with the following message To get my app on onto your iPhone I need some information about your phone. Guess what there is an app for that Click on the below link and install and then run..

iOS: how to perform an HTTP POST request?

http://stackoverflow.com/questions/5537297/ios-how-to-perform-an-http-post-request

self.data appendData d void connection NSURLConnection connection didFailWithError NSError error UIAlertView alloc initWithTitle NSLocalizedString @ Error @ message error localizedDescription delegate nil cancelButtonTitle NSLocalizedString @ OK @ otherButtonTitles nil autorelease show void connectionDidFinishLoading NSURLConnection..

How do I create delegates in Objective-C?

http://stackoverflow.com/questions/626898/how-do-i-create-delegates-in-objective-c

alloc init window setDelegate myDelegate On the NSWindow side it probably has code similar to this to see if the delegate responds to the windowDidMove message using respondsToSelector and send it if appropriate. if self delegate respondsToSelector @selector windowDidMove self delegate windowDidMove notification The delegate.. with NSObject and can provide better tool support. Speed Optimizations Instead of checking whether a delegate responds to a selector every time we want to message it you can cache that information when delegates are set. One very clean way to do this is to use a bitfield as follows @protocol SomethingDelegate NSObject @optional..

Locking the Fields in MFMailComposeViewController

http://stackoverflow.com/questions/6284599/locking-the-fields-in-mfmailcomposeviewcontroller

else is its own function void sendEmail create soft wait overlay so the user knows whats going on in the background. self createWaitOverlay the guts of the message. SKPSMTPMessage testMsg SKPSMTPMessage alloc init testMsg.fromEmail @ youremail@email.com testMsg.toEmail @ targetemailaddress@email.com testMsg.relayHost @ smtpout.yourserver.net.. bodyMessage kSKPSMTPPartMessageKey @ 8bit kSKPSMTPPartContentTransferEncodingKey nil testMsg.parts NSArray arrayWithObjects plainPart nil testMsg send void messageSent SKPSMTPMessage message message release message has been successfully sent . you can notify the user of that and remove the wait overlay self removeWaitOverlay.. @ 8bit kSKPSMTPPartContentTransferEncodingKey nil testMsg.parts NSArray arrayWithObjects plainPart nil testMsg send void messageSent SKPSMTPMessage message message release message has been successfully sent . you can notify the user of that and remove the wait overlay self removeWaitOverlay UIAlertView alert UIAlertView..

performSelector may cause a leak because its selector is unknown

http://stackoverflow.com/questions/7017281/performselector-may-cause-a-leak-because-its-selector-is-unknown

how that method consumes parameters. ARC allows for declaring consumed parameters and if the method consumes the parameter you'll probably eventually send a message to a zombie and crash. There are ways to work around this with bridged casting but really it'd be better to simply use the IMP and function pointer methodology..

How to use NSURLConnection to connect with SSL for an untrusted cert?

http://stackoverflow.com/questions/933331/how-to-use-nsurlconnection-to-connect-with-ssl-for-an-untrusted-cert

How do I record audio on iPhone with AVAudioRecorder?

http://stackoverflow.com/questions/1010343/how-do-i-record-audio-on-iphone-with-avaudiorecorder

@ d @ err domain err code err userInfo description UIAlertView alert UIAlertView alloc initWithTitle @ Warning message err localizedDescription delegate nil cancelButtonTitle @ OK otherButtonTitles nil alert show alert release return prepare.. if audioHWAvailable UIAlertView cantRecordAlert UIAlertView alloc initWithTitle @ Warning message @ Audio input hardware not available delegate nil cancelButtonTitle @ OK otherButtonTitles nil cantRecordAlert show..

AES Encryption for an NSString on the iPhone

http://stackoverflow.com/questions/1400246/aes-encryption-for-an-nsstring-on-the-iphone

I've been trying with AES256 encryption. I want to write a method which takes two NSString instances one being the message to encrypt and the other being a 'passcode' to encrypt it with I suspect I'd have to generate the encryption key with the..

Detecting which UIButton was pressed in a UITableView

http://stackoverflow.com/questions/1802707/detecting-which-uibutton-was-pressed-in-a-uitableview

the control. void buttonPressedAction id sender UIButton button UIButton sender how do I know which button sent this message processing button press for this row requires an indexPath. What's the standard way of doing this Edit I've kinda solved..

Send and receive messages through NSNotificationCenter in Objective-C? [closed]

http://stackoverflow.com/questions/2191594/send-and-receive-messages-through-nsnotificationcenter-in-objective-c

and receive messages through NSNotificationCenter in Objective C closed I need a simple example program to send and receive a message through.. messages through NSNotificationCenter in Objective C closed I need a simple example program to send and receive a message through NSNotificationCenter in Objective C iphone objective c ios nsnotificationcenter share improve this question ..

How to store custom objects in NSUserDefaults

http://stackoverflow.com/questions/2315948/how-to-store-custom-objects-in-nsuserdefaults

setObject forKey Attempt to insert non property value ' Player 0x3b0cc90 ' of class 'Player'. That is the error message I get when I put my custom class Player in the NSUserDefaults. Now I've read up that apparently NSUserDefaults only stores..

How can I send mail from an iPhone application

http://stackoverflow.com/questions/310946/how-can-i-send-mail-from-an-iphone-application

MessageUI framework. First add the framework and import #import MessageUI MFMailComposeViewController.h Then to send a message MFMailComposeViewController controller MFMailComposeViewController alloc init controller.mailComposeDelegate self controller..

Prefixing property names with an underscore in Objective C [duplicate]

http://stackoverflow.com/questions/3521254/prefixing-property-names-with-an-underscore-in-objective-c

the property indicates that's the pattern they expect you to follow. No matter what since objects still have to send messages to themselves to access properties it's hard to confuse when you're accessing a property or when you're accessing its backing.. its backing ivar directly though using the 2.0 dot access to properties does make it more possible. Using the standard message passing syntax makes intent more explicit IMO. @interface Foo NSObject NSNumber bar @property readwrite retain NSNumber..

How do you beta test an iphone app?

http://stackoverflow.com/questions/40154/how-do-you-beta-test-an-iphone-app

through Xcode. Step A Add devices to the Provisioning Portal Send an email to each beta tester with the following message To get my app on onto your iPhone I need some information about your phone. Guess what there is an app for that Click on..

iOS: how to perform an HTTP POST request?

http://stackoverflow.com/questions/5537297/ios-how-to-perform-an-http-post-request

connection didFailWithError NSError error UIAlertView alloc initWithTitle NSLocalizedString @ Error @ message error localizedDescription delegate nil cancelButtonTitle NSLocalizedString @ OK @ otherButtonTitles nil autorelease..

How do I create delegates in Objective-C?

http://stackoverflow.com/questions/626898/how-do-i-create-delegates-in-objective-c

On the NSWindow side it probably has code similar to this to see if the delegate responds to the windowDidMove message using respondsToSelector and send it if appropriate. if self delegate respondsToSelector @selector windowDidMove self delegate.. tool support. Speed Optimizations Instead of checking whether a delegate responds to a selector every time we want to message it you can cache that information when delegates are set. One very clean way to do this is to use a bitfield as follows.. respondsToSelector @selector something didFailWithError @end Then in the body we can check that our delegate handles messages by accessing our delegateRespondsTo struct rather than by sending respondsToSelector over and over again. share improve..

Locking the Fields in MFMailComposeViewController

http://stackoverflow.com/questions/6284599/locking-the-fields-in-mfmailcomposeviewcontroller

create soft wait overlay so the user knows whats going on in the background. self createWaitOverlay the guts of the message. SKPSMTPMessage testMsg SKPSMTPMessage alloc init testMsg.fromEmail @ youremail@email.com testMsg.toEmail @ targetemailaddress@email.com.. 8bit kSKPSMTPPartContentTransferEncodingKey nil testMsg.parts NSArray arrayWithObjects plainPart nil testMsg send void messageSent SKPSMTPMessage message message release message has been successfully sent . you can notify the user of that and remove.. nil testMsg.parts NSArray arrayWithObjects plainPart nil testMsg send void messageSent SKPSMTPMessage message message release message has been successfully sent . you can notify the user of that and remove the wait overlay self removeWaitOverlay..

performSelector may cause a leak because its selector is unknown

http://stackoverflow.com/questions/7017281/performselector-may-cause-a-leak-because-its-selector-is-unknown

allows for declaring consumed parameters and if the method consumes the parameter you'll probably eventually send a message to a zombie and crash. There are ways to work around this with bridged casting but really it'd be better to simply use the..

How to use NSURLConnection to connect with SSL for an untrusted cert?

http://stackoverflow.com/questions/933331/how-to-use-nsurlconnection-to-connect-with-ssl-for-an-untrusted-cert

How to post more parameters with image upload code in iOS?

http://stackoverflow.com/questions/10618056/how-to-post-more-parameters-with-image-upload-code-in-ios

Check for invalid response No Access if retObj isKindOfClass NSDictionary class if NSDictionary retObj valueForKey @ Message isEqualToString @ No Access block nil self handleNoAccessWithReason NSDictionary retObj valueForKey @ Reason else if.. NSArray class if NSArray retObj count 0 NSDictionary dict NSArray retObj objectAtIndex 0 if dict valueForKey @ Message isEqualToString @ No Access block nil self handleNoAccessWithReason NSDictionary retObj valueForKey @ Reason block.. Check for invalid response No Access if retObj isKindOfClass NSDictionary class if NSDictionary retObj valueForKey @ Message isEqualToString @ No Access block nil self handleNoAccessWithReason NSDictionary retObj valueForKey @ Reason else if..

Facebook API: Post on friend wall

http://stackoverflow.com/questions/10773030/facebook-api-post-on-friend-wall

@ postVariablesDictionary postVariablesDictionary release UIAlertView facebookAlter UIAlertView alloc initWithTitle @ Message message @ Posted successfully on facebook delegate self cancelButtonTitle @ OK otherButtonTitles nil nil facebookAlter show..

gcc-4.2 failed with exit code 1 iphone

http://stackoverflow.com/questions/1248520/gcc-4-2-failed-with-exit-code-1-iphone

debug windows because I'm guessing it doesn't get that far. I simply click 'Build and Go' and I get this error in the Message window. Any thoughts iphone gcc exit code share improve this question As you can see from the many different responses..

Symbol not found: _CFXMLNodeGetInfoPtr when start Instruments

http://stackoverflow.com/questions/1281261/symbol-not-found-cfxmlnodegetinfoptr-when-start-instruments

can build and start the app in the simulator. But when I now start the app with Instruments I got the error Dyld Error Message Symbol not found _CFXMLNodeGetInfoPtr Referenced from System Library Frameworks Security.framework Versions A Security Expected..

XCode 5 Crashes on AppStore Validation

http://stackoverflow.com/questions/18913964/xcode-5-crashes-on-appstore-validation

I've tried both Validate and Distribute but I get the same XCode error every time. Here's the beginning of the Error Message I get from XCode let me know if there's needed more information. Process Xcode 1920 Path Applications Xcode.app Contents..

Display CFUserNotificationDisplayAlert on iPhone Lock Screen

http://stackoverflow.com/questions/2199642/display-cfusernotificationdisplayalert-on-iphone-lock-screen

CFStringRef keys kCFUserNotificationAlertTopMostKey kCFUserNotificationAlertHeaderKey kCFUserNotificationAlertMessageKey CFStringRef values kCFBooleanTrue CFSTR Title CFSTR Message CFDictionaryRef dict CFDictionaryCreate NULL keys values.. kCFUserNotificationAlertMessageKey CFStringRef values kCFBooleanTrue CFSTR Title CFSTR Message CFDictionaryRef dict CFDictionaryCreate NULL keys values sizeof keys sizeof keys kCFTypeDictionaryKeyCallBacks kCFTypeDictionaryValueCallBacks..

iPhone web service calls to WCF Service with Certificate Authentication

http://stackoverflow.com/questions/2244764/iphone-web-service-calls-to-wcf-service-with-certificate-authentication

to you but it all boils down to this short list Transport layer security https with clear text messages xml json ... Message layer security encrypted message body over an open transport http Secured messages over a secured transport The last time.. transport The last time I was doing WCF about a year ago the general recommendation from Microsoft seemed to be Message layer security over an open transport because of firewall accessibility issues introduced when trying to secure the transport...

iOS 4 app crashes at startup on iOS 3.1.3: Symbol not found: __NSConcreteStackBlock

http://stackoverflow.com/questions/3313786/ios-4-app-crashes-at-startup-on-ios-3-1-3-symbol-not-found-nsconcretestackbl

Version 104 Exception Type EXC_BREAKPOINT SIGTRAP Exception Codes 0x00000001 0xe7ffdefe Crashed Thread 0 Dyld Error Message Symbol not found __NSConcreteStackBlock Referenced from var mobile Applications 192B30ED 16AC 431E B0E9 67C1F41FD5DA MyApp.app..

iPhone TBXML Looping And Parsing Data

http://stackoverflow.com/questions/5406424/iphone-tbxml-looping-and-parsing-data

UserID jonathan.pink@2sms.com UserID Identification Result 2 records were returned Result Detail ReportTitle Message Summary Today ReportTitle Record Destination 447790686158 Destination Status WithNetwork Status GUID CDATA 2011 03 22T10.. 54 22.097 DateSubmitted DateToSend DateToSend DateSent 2011 03 22T10 54 22.533 DateSent DateReceived DateReceived Message CDATA Yet again another test Message ID 2011 03 22 10 54 22.250HIHIIOJTFVETW85TS ID Record Record Destination 447790686158.. DateToSend DateSent 2011 03 22T10 54 22.533 DateSent DateReceived DateReceived Message CDATA Yet again another test Message ID 2011 03 22 10 54 22.250HIHIIOJTFVETW85TS ID Record Record Destination 447790686158 Destination Status SUCCESS Status..

how to upload an audio file using HTTP POST from iPhone?

http://stackoverflow.com/questions/6199446/how-to-upload-an-audio-file-using-http-post-from-iphone

@ 666 NSLog @ responseStatusCode i request responseStatusCode NSLog @ responseString @ request responseString Error Message 2011 06 01 07 06 10.819 viewer1 16473 207 NSURL length unrecognized selector sent to instance 0x5644900 2011 06 01 07 06..

Locking the Fields in MFMailComposeViewController

http://stackoverflow.com/questions/6284599/locking-the-fields-in-mfmailcomposeviewcontroller

be more professional to have the fields locked rather than display an alert or something saying Please Don't Edit the Message so its not a massive problem if the fields can't be locked but any help would be greatly appreciated. iphone ios email.. overlay so the user knows whats going on in the background. self createWaitOverlay the guts of the message. SKPSMTPMessage testMsg SKPSMTPMessage alloc init testMsg.fromEmail @ youremail@email.com testMsg.toEmail @ targetemailaddress@email.com.. knows whats going on in the background. self createWaitOverlay the guts of the message. SKPSMTPMessage testMsg SKPSMTPMessage alloc init testMsg.fromEmail @ youremail@email.com testMsg.toEmail @ targetemailaddress@email.com testMsg.relayHost @ smtpout.yourserver.net..

Application crashed while importing songs from Ipod library in Iphone for iOs 5.0

http://stackoverflow.com/questions/8077725/application-crashed-while-importing-songs-from-ipod-library-in-iphone-for-ios-5

@ BRL Only supports importing 10 songs at a time UIAlertView connectionAlert UIAlertView alloc initWithTitle @ Message message str delegate self cancelButtonTitle @ OK otherButtonTitles nil connectionAlert show connectionAlert release else..

How to get IMEI on iPhone?

http://stackoverflow.com/questions/823181/how-to-get-imei-on-iphone

to get IMEI on iPhone I want to get IMEI on iPhone. I try to use the following code #import Message NetworkController.h NetworkController ntc NetworkController sharedInstance autorelease NSString imeistring ntc IMEI But.. IMEI on iPhone iphone objective c imei share improve this question I found that erica had posted the header file Message NetworkController.h on ericasadun.com. http ericasadun.com iPhoneDocs300 _network_controller_8h source.html It's been removed.. removed now I created a header file copy and paste the NetworkController.h file into it and add the private framework Message.framework to my project import the header file I created. Now I can use the original method I found to get the imei number...