Questions tagged as 'objective-c'

1
answer

How do I get a JSON and store it in a list?

I would like to receive a JSON containing multiple messages and store it in a list that contains JSON content per position The format of JSON would be this: [{"id":"42","data":"02\/12\/2015 12:01:21","texto":"blablabla","nome":null}, {"id"...
asked by 04.02.2016 / 14:28
1
answer

Upload .mp3 file to PHP server in Objective-C

How do I upload an .mp3 file on my iphone to my server using an upload page I was able to do with more images I am not able to do with .mp3 files could someone help me? The following is the code I use: Objective-C: NSData *imageData = UII...
asked by 25.09.2015 / 14:00
1
answer

How to choose position to print a string in a text?

I'm developing an app where the user can choose between a text, the position where the output value of a string should be printed.  Example:  Normally when we print a string in the middle of a text we do this: NSLog (@" Um texto com:%@", minh...
asked by 16.03.2015 / 19:48
2
answers

Xcode does not find button

I created a button on storyboard to connect to a viewController . Clicking the button causes the error:    thread 1: signal SIGARBT What could be causing such an error? I've seen many tutorials and nothing.     
asked by 14.07.2015 / 13:15
2
answers

AFTNetworking with Token to download image

I'm testing AFTNetworking to download images from a backend, however I'm having errors downloading images. I have tried several implementations, with this implementation I have not accepted content error. Below is the last implementation I...
asked by 30.01.2015 / 17:34
1
answer

How to collapse keyboard when cancel search button is clicked?

How to collapse the keyboard when the cancel button is clicked on a UISearchBar? I tried some methods and even delegate methods, but it did not work. I'll put an image to be more precise:     
asked by 04.12.2014 / 05:49
1
answer

How to find coordinates in Apple maps?

I need to show several different places on the map, one for each location, I would like to know how I can point to each coordinate through the code? In case the app is for iOS, using Objective-C.     
asked by 20.10.2014 / 03:29
1
answer

How do I add characters to a native iOS keyboard type?

Scenario: In an app screen, the user should enter a data type that is only a number to perform a search. To avoid using text, I set up a keyboard for the type: Number Pad. However, I need to display other characters together, in this case the hy...
asked by 13.10.2014 / 20:00
1
answer

UITextField - Position the cursor during editing

I am making a UITextFied edit treatment to format text as decimal with decimal and thousands separators. My question is how to position the cursor always in the right corner of the text field? Thankful     
asked by 13.04.2015 / 19:00
2
answers

Make arc4random () not repeat the last number

I created a app to generate random numbers. I just wanted him to not repeat the last number he showed. Example: the result was 9 (I execute the method that generates the random number again) The result was 9. I tried to cre...
asked by 05.08.2014 / 03:54