¡@

Home 

2014/10/15 ¤U¤È 10:15:38

iphone Programming Glossary: userinfo

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 err NSLog @ audioSession @ d @ err domain err code err userInfo description return audioSession setActive YES error err err nil if err NSLog @ audioSession @ d @ err.. setActive YES error err err nil if err NSLog @ audioSession @ d @ err domain err code err userInfo description return recordSetting NSMutableDictionary alloc init recordSetting setValue NSNumber numberWithInt.. url settings recordSetting error err if recorder NSLog @ recorder @ d @ err domain err code err userInfo description UIAlertView alert UIAlertView alloc initWithTitle @ Warning message err localizedDescription..

NSTimer doesn't stop

http://stackoverflow.com/questions/1031554/nstimer-doesnt-stop

timer NSTimer scheduledTimerWithTimeInterval 0.2f target self selector @selector timerAction userInfo nil repeats YES void viewDidDisappear BOOL animated super viewDidDisappear animated timer invalidate..

how to get the message when receiving the “kCTMessageReceivedNotification” notification on IOS5

http://stackoverflow.com/questions/10681995/how-to-get-the-message-when-receiving-the-kctmessagereceivednotification-notif

isEqualToString @ kCTMessageReceivedNotification receive message NSDictionary info NSDictionary userInfo CFNumberRef msgID CFNumberRef info objectForKey @ kCTMessageIdKey int result CFNumberGetValue CFNumberRef..

Arguments in @selector

http://stackoverflow.com/questions/1349740/arguments-in-selector

two arguments. NSTimer scheduledTimerWithTimeInterval 0.1 target self selector @selector my method userInfo nil repeats YES How can I do this iphone cocoa cocoa touch share improve this question You could..

Adding Core Data to existing iPhone project

http://stackoverflow.com/questions/2032818/adding-core-data-to-existing-iphone-project

error message to determine what the actual problem was. NSLog @ Unresolved error @ @ error error userInfo abort return persistentStoreCoordinator iphone core data share improve this question All the CoreData..

Implementation of “Automatic Lightweight Migration” for Core Data (iPhone)

http://stackoverflow.com/questions/2310216/implementation-of-automatic-lightweight-migration-for-core-data-iphone

configuration nil URL storeUrl options nil error error NSLog @ Unresolved error @ @ error error userInfo abort return persistentStoreCoordinator I am having trouble seeing where and how I should add the Apple..

iPhone: Detecting user inactivity/idle time since last screen touch

http://stackoverflow.com/questions/273450/iphone-detecting-user-inactivity-idle-time-since-last-screen-touch

scheduledTimerWithTimeInterval maxIdleTime target self selector @selector idleTimerExceeded userInfo nil repeats NO retain void idleTimerExceeded NSLog @ idle time exceeded where maxIdleTime and idleTimer..

How to filter NSFetchedResultsController (CoreData) with UISearchDisplayController/UISearchBar

http://stackoverflow.com/questions/4471289/how-to-filter-nsfetchedresultscontroller-coredata-with-uisearchdisplaycontroll

to quit the application by pressing the Home button. NSLog @ Unresolved error @ @ error error userInfo abort return aFetchedResultsController NSFetchedResultsController fetchedResultsController if fetchedResultsController_..

Lock Unlock events iphone

http://stackoverflow.com/questions/706344/lock-unlock-events-iphone

NSTimer scheduledTimerWithTimeInterval 2 target self selector @selector deviceDidLock userInfo nil repeats NO 2 seconds for wiggle Deprecated in iOS5 void accelerometer UIAccelerometer accelerometer.. NSTimer scheduledTimerWithTimeInterval 2 target self selector @selector deviceDidLock userInfo nil repeats NO void deviceDidLock NSLog @ STATUS Device locked UIAccelerometer sharedAccelerometer setDelegate..

How do I record audio on iPhone with AVAudioRecorder?

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

NSError err nil audioSession setCategory AVAudioSessionCategoryPlayAndRecord error err if err NSLog @ audioSession @ d @ err domain err code err userInfo description return audioSession setActive YES error err err nil if err NSLog @ audioSession @ d @ err domain err code err userInfo description return recordSetting.. d @ err domain err code err userInfo description return audioSession setActive YES error err err nil if err NSLog @ audioSession @ d @ err domain err code err userInfo description return recordSetting NSMutableDictionary alloc init recordSetting setValue NSNumber numberWithInt kAudioFormatLinearPCM forKey AVFormatIDKey recordSetting.. err nil recorder AVAudioRecorder alloc initWithURL url settings recordSetting 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..

NSTimer doesn't stop

http://stackoverflow.com/questions/1031554/nstimer-doesnt-stop

viewWillAppear BOOL animated super viewWillAppear animated timer NSTimer scheduledTimerWithTimeInterval 0.2f target self selector @selector timerAction userInfo nil repeats YES void viewDidDisappear BOOL animated super viewDidDisappear animated timer invalidate timer nil void timerAction NSLog @ timerAction iphone cocoa..

how to get the message when receiving the “kCTMessageReceivedNotification” notification on IOS5

http://stackoverflow.com/questions/10681995/how-to-get-the-message-when-receiving-the-kctmessagereceivednotification-notif

NULL NULL CFNotificationSuspensionBehaviorHold if notifyname isEqualToString @ kCTMessageReceivedNotification receive message NSDictionary info NSDictionary userInfo CFNumberRef msgID CFNumberRef info objectForKey @ kCTMessageIdKey int result CFNumberGetValue CFNumberRef msgID kCFNumberSInt32Type result Class CTMessageCenter..

Arguments in @selector

http://stackoverflow.com/questions/1349740/arguments-in-selector

and I need to call this function through a selector passing two arguments. NSTimer scheduledTimerWithTimeInterval 0.1 target self selector @selector my method userInfo nil repeats YES How can I do this iphone cocoa cocoa touch share improve this question You could use the NSTimer method NSTimer scheduledTimerWithTimeInterval..

Adding Core Data to existing iPhone project

http://stackoverflow.com/questions/2032818/adding-core-data-to-existing-iphone-project

is incompatible with current managed object model Check the error message to determine what the actual problem was. NSLog @ Unresolved error @ @ error error userInfo abort return persistentStoreCoordinator iphone core data share improve this question All the CoreData header files are imported in App_Prefix.pch so the CoreData..

Implementation of “Automatic Lightweight Migration” for Core Data (iPhone)

http://stackoverflow.com/questions/2310216/implementation-of-automatic-lightweight-migration-for-core-data-iphone

addPersistentStoreWithType NSSQLiteStoreType configuration nil URL storeUrl options nil error error NSLog @ Unresolved error @ @ error error userInfo abort return persistentStoreCoordinator I am having trouble seeing where and how I should add the Apple code to get the Automatic Lightweight Migration working..

iPhone: Detecting user inactivity/idle time since last screen touch

http://stackoverflow.com/questions/273450/iphone-detecting-user-inactivity-idle-time-since-last-screen-touch

idleTimer idleTimer invalidate idleTimer release idleTimer NSTimer scheduledTimerWithTimeInterval maxIdleTime target self selector @selector idleTimerExceeded userInfo nil repeats NO retain void idleTimerExceeded NSLog @ idle time exceeded where maxIdleTime and idleTimer are instance variables. In order for this to work you also..

How to filter NSFetchedResultsController (CoreData) with UISearchDisplayController/UISearchBar

http://stackoverflow.com/questions/4471289/how-to-filter-nsfetchedresultscontroller-coredata-with-uisearchdisplaycontroll

from the error display an alert panel that instructs the user to quit the application by pressing the Home button. NSLog @ Unresolved error @ @ error error userInfo abort return aFetchedResultsController NSFetchedResultsController fetchedResultsController if fetchedResultsController_ nil return fetchedResultsController_ fetchedResultsController_..

Lock Unlock events iphone

http://stackoverflow.com/questions/706344/lock-unlock-events-iphone

setUpdateInterval 1 Ping every second _notActiveTimer NSTimer scheduledTimerWithTimeInterval 2 target self selector @selector deviceDidLock userInfo nil repeats NO 2 seconds for wiggle Deprecated in iOS5 void accelerometer UIAccelerometer accelerometer didAccelerate UIAcceleration acceleration NSLog @ STATUS.. Update from accelerometer _notActiveTimer invalidate _notActiveTimer NSTimer scheduledTimerWithTimeInterval 2 target self selector @selector deviceDidLock userInfo nil repeats NO void deviceDidLock NSLog @ STATUS Device locked UIAccelerometer sharedAccelerometer setDelegate nil _notActiveTimer nil void applicationDidBecomeActive..

How do I record audio on iPhone with AVAudioRecorder?

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

setCategory AVAudioSessionCategoryPlayAndRecord error err if err NSLog @ audioSession @ d @ err domain err code err userInfo description return audioSession setActive YES error err err nil if err NSLog @ audioSession @ d @ err domain err code err.. return audioSession setActive YES error err err nil if err NSLog @ audioSession @ d @ err domain err code err userInfo description return recordSetting NSMutableDictionary alloc init recordSetting setValue NSNumber numberWithInt kAudioFormatLinearPCM.. alloc initWithURL url settings recordSetting 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..

NSTimer doesn't stop

http://stackoverflow.com/questions/1031554/nstimer-doesnt-stop

animated timer NSTimer scheduledTimerWithTimeInterval 0.2f target self selector @selector timerAction userInfo nil repeats YES void viewDidDisappear BOOL animated super viewDidDisappear animated timer invalidate timer nil void timerAction..

how to get the message when receiving the “kCTMessageReceivedNotification” notification on IOS5

http://stackoverflow.com/questions/10681995/how-to-get-the-message-when-receiving-the-kctmessagereceivednotification-notif

if notifyname isEqualToString @ kCTMessageReceivedNotification receive message NSDictionary info NSDictionary userInfo CFNumberRef msgID CFNumberRef info objectForKey @ kCTMessageIdKey int result CFNumberGetValue CFNumberRef msgID kCFNumberSInt32Type..

Install Simulator SDK 4.3 to Xcode 4.4 on Mountain Lion

http://stackoverflow.com/questions/11651773/install-simulator-sdk-4-3-to-xcode-4-4-on-mountain-lion

string key identifier key string Xcode.SDK.iPhoneSimulator.4.3 string key name key string iOS 4.3 Simulator string key userInfo key dict key InstalledIfAllPathsArePresent key array string DEVELOPER Platforms iPhoneSimulator.platform Developer SDKs..

Checkbox image toggle in UITableViewCell

http://stackoverflow.com/questions/1171476/checkbox-image-toggle-in-uitableviewcell

forKey @ CellCheckToggled NSNotificationCenter defaultCenter postNotificationName @ CellCheckToggled object self userInfo dict You will obviously need to massage some stuff. You probably want to pass in the two image names to make it more reusable..

Arguments in @selector

http://stackoverflow.com/questions/1349740/arguments-in-selector

a selector passing two arguments. NSTimer scheduledTimerWithTimeInterval 0.1 target self selector @selector my method userInfo nil repeats YES How can I do this iphone cocoa cocoa touch share improve this question You could use the NSTimer method..

Adding Core Data to existing iPhone project

http://stackoverflow.com/questions/2032818/adding-core-data-to-existing-iphone-project

model Check the error message to determine what the actual problem was. NSLog @ Unresolved error @ @ error error userInfo abort return persistentStoreCoordinator iphone core data share improve this question All the CoreData header files..

Implementation of “Automatic Lightweight Migration” for Core Data (iPhone)

http://stackoverflow.com/questions/2310216/implementation-of-automatic-lightweight-migration-for-core-data-iphone

NSSQLiteStoreType configuration nil URL storeUrl options nil error error NSLog @ Unresolved error @ @ error error userInfo abort return persistentStoreCoordinator I am having trouble seeing where and how I should add the Apple code to get the..

iPhone: Detecting user inactivity/idle time since last screen touch

http://stackoverflow.com/questions/273450/iphone-detecting-user-inactivity-idle-time-since-last-screen-touch

release idleTimer NSTimer scheduledTimerWithTimeInterval maxIdleTime target self selector @selector idleTimerExceeded userInfo nil repeats NO retain void idleTimerExceeded NSLog @ idle time exceeded where maxIdleTime and idleTimer are instance variables...

UIKeyboardBoundsUserInfoKey is deprecated, what to use instead?

http://stackoverflow.com/questions/2807339/uikeyboardboundsuserinfokey-is-deprecated-what-to-use-instead

aNotification up NO void moveTextViewForKeyboard NSNotification aNotification up BOOL up NSDictionary userInfo aNotification userInfo Get animation info from userInfo NSTimeInterval animationDuration UIViewAnimationCurve animationCurve.. up NO void moveTextViewForKeyboard NSNotification aNotification up BOOL up NSDictionary userInfo aNotification userInfo Get animation info from userInfo NSTimeInterval animationDuration UIViewAnimationCurve animationCurve CGRect keyboardEndFrame.. NSNotification aNotification up BOOL up NSDictionary userInfo aNotification userInfo Get animation info from userInfo NSTimeInterval animationDuration UIViewAnimationCurve animationCurve CGRect keyboardEndFrame userInfo objectForKey UIKeyboardAnimationCurveUserInfoKey..

How Do I write a Timer in Objective-C?

http://stackoverflow.com/questions/3519562/how-do-i-write-a-timer-in-objective-c

gave the following code nst_Timer NSTimer scheduledTimerWithTimeInterval 0.001 target self selector @selector showTime userInfo nil repeats NO and it is not working in milliseconds. It takes more than 1 millisecond. iphone objective c timer nsdate..

How to filter NSFetchedResultsController (CoreData) with UISearchDisplayController/UISearchBar

http://stackoverflow.com/questions/4471289/how-to-filter-nsfetchedresultscontroller-coredata-with-uisearchdisplaycontroll

that instructs the user to quit the application by pressing the Home button. NSLog @ Unresolved error @ @ error error userInfo abort return aFetchedResultsController NSFetchedResultsController fetchedResultsController if fetchedResultsController_..

Lock Unlock events iphone

http://stackoverflow.com/questions/706344/lock-unlock-events-iphone

every second _notActiveTimer NSTimer scheduledTimerWithTimeInterval 2 target self selector @selector deviceDidLock userInfo nil repeats NO 2 seconds for wiggle Deprecated in iOS5 void accelerometer UIAccelerometer accelerometer didAccelerate UIAcceleration.. invalidate _notActiveTimer NSTimer scheduledTimerWithTimeInterval 2 target self selector @selector deviceDidLock userInfo nil repeats NO void deviceDidLock NSLog @ STATUS Device locked UIAccelerometer sharedAccelerometer setDelegate nil _notActiveTimer..

Upload video on youtube from iphone app

http://stackoverflow.com/questions/10801383/upload-video-on-youtube-from-iphone-app

com.google.GDataServiceDomain Code 400 The operation couldn ™t be completed. com.google.GDataServiceDomain error 400. UserInfo 0x4d921f0 Can any one help me. Thanx My code NSString devKey mDeveloperKeyField text GDataServiceGoogleYouTube service self..

iOS 6 Facebook posting procedure ends up with “remote_app_id does not match stored id” error

http://stackoverflow.com/questions/12644229/ios-6-facebook-posting-procedure-ends-up-with-remote-app-id-does-not-match-stor

Code 7 The Facebook server could not fulfill this access request remote_app_id does not match stored id. UserInfo 0xa260270 NSLocalizedDescription The Facebook server could not fulfill this access request remote_app_id does not match..

iOS 6 Facebook posting procedure ends up with “remote_app_id does not match stored id”

http://stackoverflow.com/questions/12671420/ios-6-facebook-posting-procedure-ends-up-with-remote-app-id-does-not-match-stor

Code 7 The Facebook server could not fulfill this access request remote_app_id does not match stored id. UserInfo 0xa260270 NSLocalizedDescription The Facebook server could not fulfill this access request remote_app_id does not match..

iphone Core Data Unresolved error while saving

http://stackoverflow.com/questions/1283960/iphone-core-data-unresolved-error-while-saving

at different times when doing different tasks the error message Unresolved error Domain NSCocoaErrorDomain Code 1560 UserInfo 0x14f5480 Operation could not be completed. Cocoa error 1560. NSDetailedErrors Error Domain NSCocoaErrorDomain Code 1570.. Operation could not be completed. Cocoa error 1560. NSDetailedErrors Error Domain NSCocoaErrorDomain Code 1570 UserInfo 0x5406d70 Operation could not be completed. Cocoa error 1570. Error Domain NSCocoaErrorDomain Code 1570 UserInfo 0x14f9be0.. 1570 UserInfo 0x5406d70 Operation could not be completed. Cocoa error 1570. Error Domain NSCocoaErrorDomain Code 1570 UserInfo 0x14f9be0 Operation could not be completed. Cocoa error 1570. and the method that generates the error is IBAction saveAction..

NSMutableURLRequest timeout interval not taken into consideration for POST requests

http://stackoverflow.com/questions/1466389/nsmutableurlrequest-timeout-interval-not-taken-into-consideration-for-post-reque

minutes but not with NSLocalizedDescription timed out NSUnderlyingError Error Domain kCFErrorDomainCFNetwork Code 1001 UserInfo 0x139580 The request timed out. If the http method used is GET it works fine. The connection is async over https . NSURL..

Send Nested JSON using AFNetworking

http://stackoverflow.com/questions/16476428/send-nested-json-using-afnetworking

™t be completed. Cocoa error 3840. JSON text did not start with array or object and option to allow fragments not set. UserInfo 0x94b3c30 NSDebugDescription JSON text did not start with array or object and option to allow fragments not set. iphone..

iPhone Core Data “Automatic Lightweight Migration”

http://stackoverflow.com/questions/1830079/iphone-core-data-automatic-lightweight-migration

when executing the code 2009 12 01 20 04 22.877 Shoppee 25633 207 Error Error Domain NSCocoaErrorDomain Code 134130 UserInfo 0x1624d20 Operation could not be completed. Cocoa error 134130. 2009 12 01 20 04 22.879 Shoppee 25633 207 Unresolved error.. error 134130. 2009 12 01 20 04 22.879 Shoppee 25633 207 Unresolved error Error Domain NSCocoaErrorDomain Code 134130 UserInfo 0x1624d20 Operation could not be completed. Cocoa error 134130. URL file localhost Users Eric Library Application 20Support..

iPhone Store Kit “Cannot connect to iTunes Store”

http://stackoverflow.com/questions/2359739/iphone-store-kit-cannot-connect-to-itunes-store

I NSLog the transaction.error and this is what it returns Error Domain SKErrorDomain Code 0 UserInfo 0x165000 Cannot connect to iTunes Store I have logged out of the Store in the Settings app but after trying to purchase..

Displaying ppt, doc, and xls in UIWebView doesn't work but pdf does

http://stackoverflow.com/questions/2520137/displaying-ppt-doc-and-xls-in-uiwebview-doesnt-work-but-pdf-does

about blank navType 5 webViewDidStartLoad didFailLoadWithError Error Domain NSURLErrorDomain Code 100 UserInfo 0x122503a0 Operation could not be completed. NSURLErrorDomain error 100. didFailLoadWithError Error Domain WebKitErrorDomain.. could not be completed. NSURLErrorDomain error 100. didFailLoadWithError Error Domain WebKitErrorDomain Code 102 UserInfo 0x12253840 Frame load interrupted so obviously the load is failing but why If I change my mimetype to @ text plain for a..

Getting an error from push notification

http://stackoverflow.com/questions/5457963/getting-an-error-from-push-notification

Error Error Domain NSCocoaErrorDomain Code 3000 no valid 'aps environment' entitlement string found for application UserInfo 0x2340a0 NSLocalizedDescription no valid 'aps environment' entitlement string found for application What I am doing wrong..

how to display test IAd banner in the simulator

http://stackoverflow.com/questions/5947552/how-to-display-test-iad-banner-in-the-simulator

Domain ADErrorDomain Code 5 The operation couldn ™t be completed. Banner view is visible but does not have content UserInfo 0x574fdd0 ADInternalErrorCode 5 NSLocalizedFailureReason Banner view is visible but does not have content I know iAd banner..

Why does test iAd for barebones project not display? [duplicate]

http://stackoverflow.com/questions/5953418/why-does-test-iad-for-barebones-project-not-display

Domain ADErrorDomain Code 5 The operation couldn ™t be completed. Banner view is visible but does not have content UserInfo 0x610c5d0 ADInternalErrorCode 5 NSLocalizedFailureReason Banner view is visible but does not have content and my adbannerview..

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

Code 6 No file exists at file localhost var folders 45 45y8AmvjHvyUUl0mCOpmC TI Tmp 328620103851.caf UserInfo 0x534e500 NSLocalizedDescription No file exists at file localhost var folders 45 45y8AmvjHvyUUl0mCOpmC TI Tmp 328620103851.caf..

Bad URL when requesting with NSURL

http://stackoverflow.com/questions/6287230/bad-url-when-requesting-with-nsurl

limit 40 until 1286619821 But I got this message Failed with error Error Domain NSURLErrorDomain Code 1000 bad URL UserInfo 0x9e657a0 NSUnderlyingError 0x9e656a0 bad URL NSLocalizedDescription bad URL When I copied and pasted in Safari or Chrome..

Crash when adding persistent store (iCloud enabled) in app delegate

http://stackoverflow.com/questions/8021753/crash-when-adding-persistent-store-icloud-enabled-in-app-delegate

Code 1 The operation couldn ™t be completed. LibrarianErrorDomain error 1 Unable to initiate item download. UserInfo 0x176000 NSURL file localhost private var mobile Library Mobile 20Documents . data NSDescription Unable to initiate item..

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

nil error error Except it gives an error if the cert is a self signed one Error Domain NSURLErrorDomain Code 1202 UserInfo 0xd29930 untrusted server certificate . Is there a way to set it to accept connections anyway just like in a browser you..