모바일개발(Mobile Dev)/IOS개발(ObjectC)109 background thread in iOS written by http://pinkstone.co.uk/how-to-execute-a-method-on-a-background-thread-in-ios/ How to execute a method on a background thread in iOSApril 12, 2014Grand Central Dispatch, NSThreadJay VersluisTo call something from a background thread we can use dispatch_async.This cryptic looking statement will throw something to a background thread while the main thread can deal with other functions. T.. 2015. 12. 12. How to clear UIWebView cache written by http://nscookbook.com/2013/03/ios-programming-recipe-16-populating-a-uitableview-with-data-from-the-web/ I need to show a UIWebView that opens a local html, fetching from a remote server. Each time, the UIWebView shows incorrect data, because the iOS caching system.I did many attempts to solve this problem, but it does not work:1) Programmatically add UIWebView when the UIViewControll.. 2015. 12. 12. How do I clear the data in a plist created in XCode? - (BOOL)removeItemAtPath:(NSString *)path error:(NSError **)error Description Removes the file or directory at the specified path. Prior to removing each item, the file manager asks its delegate if it should actually do so. It does this by calling the fileManager:shouldRemoveItemAtURL: method; if that method is not implemented (or the process is running in OS X 10.5 or earlier) it calls the file.. 2015. 12. 12. A better way to access NSUserDefaults written by http://www.geronimobile.com/a-better-way-to-access-nsuserdefaults/ We all love NSUserDefaults for saving vital app info from session to session, but sometimes it can be tedious remembering the exact syntax. Here are two methods I found in a an open source framework that I think are pretty spiffy. 123456789101112131415-(id)retrieveFromUserDefaults:(NSString *)key { NSUserDefaults *stan.. 2015. 12. 11. Sending Image from Xcode to Server awesome really written by http://www.geronimobile.com/sending-image-from-xcode-to-server/ 1234567891011121314151617181920212223242526272829303132333435363738394041424344NSString *urlString = @"http://www.example.com/path/to/script.php"; //Convert your UIImage to NSDate NSData *imageData = UIImageJPEGRepresentation(yourImage,.3); if (imageData != nil) { NSString *filenames = [NSString stringWithF.. 2015. 12. 11. Xcode 6 Strange Bug: Unknown class in Interface Builder file I upgraded to Xcode 6 beta 4 and now my App continuously crashes with the messageUnknown class X in Interface Builder file.It crashes because supposedly Xcode can't find my custom classes that I have linked in my Storyboard but it shows that they are linked correctly in the Xcode interface.I've spent hours trying to figure this out, but nothing works! I'm positive everything is linked correctly... 2015. 12. 11. ABOUT PLIST How can i save, retrieve, delete & update my data in Plist file in ios?up vote2down votefavorite3I am creating a iPhone app in which i get all countries name, logo & player name. I want to save that data in .plist instead of sqlite server. I don't know how to create a plist file in DocumentDirectory and save the data.Please somebody suggest me how to save data in plist file.ios plistshareimprove.. 2015. 12. 10. english locale for the displayName Query an english locale for the displayNamelike this:NSLocale *locale = [NSLocale currentLocale]; NSString *countryCode = [locale objectForKey: NSLocaleCountryCode]; NSLocale *usLocale = [[[NSLocale alloc] initWithLocaleIdentifier:@"en_US"] autorelease]; NSString *country = [usLocale displayNameForKey: NSLocaleCountryCode value: countryCode]; 2015. 12. 10. Facebook Login in iOS App written by http://www.appcoda.com/ios-programming-facebook-login-sdk/ How to Integrate Facebook Login in iOS Appmay 19, 2014 by gabriel theodoropoulos 50 commentsIntegrating Facebook features into an app is nowadays a quite common task, and one of the most important steps in the integration process is the login functionality implementation. Logging in with Facebook not only allows you to attach .. 2015. 12. 6. 이전 1 2 3 4 5 6 7 ··· 13 다음