Questions tagged as 'objective-c'

2
answers

viewDidAppear equivalent in apple watch

I need to present a small animation (a sequence of images) when my App starts. The willActivate method does not help me, because it is still not showing anything. Is there a notification or something to make sure you're already showing th...
asked by 15.06.2015 / 14:18
1
answer

Objective-C syntax error

I am a beginner in the language Objective C and I was practicing, when I received some errors, follow the code: @interface Pessoas: NSObject { int idade; int peso; } -(void) imprimir; -(void) setIdade: (int) i; -(void) setPeso: (int) p...
asked by 30.04.2014 / 20:22
1
answer

How to save an image in the application cache and display later?

I was assigned to before launching the application displaying promotional images. Images are obtained through JSON, which also has a preview time setting. I am using the following code to store the image from a URL in the / Library / Caches /...
asked by 07.10.2014 / 20:12
1
answer

Load UIViewController

I have a UIViewController with the Black Background where it would be my main UIViewController (where the menu is and etc) and I do this: CredenciaisViewController *obj = [self.storyboard instantiateViewControllerWithIdentifier:@"Credencial"];...
asked by 08.10.2014 / 16:23
2
answers

Problem with NSDate

I have an IMObject class, in it I have an NSDate * StartDate field. I fill this field with a return of the database: (IMMutableArrayIMTable*)[databaseTemp retrieve: @"select * from table" withParams:nil forClass: [IMTable class]] In the XC...
asked by 27.05.2014 / 22:30
1
answer

Invoke touchInside method via SWIFT programming

Good evening guys, my doubt can be simple for many more I'm having a bit of trouble solving the same. Come on! I created a button (UIButton) and would like to know how I invoke an action when it is clicked via programming. I thank you for...
asked by 03.09.2015 / 04:19
2
answers

Call another screen after few seconds without user interaction

I need to put the following behavior in my app: After a few seconds without a user touching the screen, for example 10 seconds, the app will display another screen showing an image. And when the user touches the screen, the image screen disap...
asked by 30.07.2014 / 15:59
1
answer

JSON API cache in Xcode

I want to cache the JSON API from my Wordpress in my app. I want a cache of tableview cells and UIWebView for when in airplane mode or off or with bad signal, the user can still see. I tried caching with AFNetworking and NSURLCache...
asked by 02.08.2014 / 03:44
2
answers

How to call a viewcontrolller runtime

Friends I just need to open a ViewController, and I'm giving it silly, could help. Who can help .... Thanks. . LoginViewController *tela2 = [self.storyboard instantiateViewControllerWithIdentifier:@"login"]; [self presentViewController:tela2 a...
asked by 01.08.2016 / 15:38
1
answer

Make GET request through a WebView

I have a problem when trying to send a request via get to a WebView to open it containing a page, when I pass the concatenated faces I get an error, I think it's for coding reasons this only happens when I pass parameters with special characters...
asked by 30.06.2016 / 17:39