Questions tagged as 'ios'

1
answer

Interrupt a chain of actions in SWIFT

I am developing a simple application with two screens, authentication uama and another for a second process, this application is for IOS using the SWIFT language. When using the Storebord to set the screen sequences I came across the situatio...
asked by 18.09.2015 / 22:44
1
answer

Access global var

I have the following problem: I have the following code var myGlobal : String func nomeDaFuncao () { // Preciso acessar a global myGlobal = "fff" } How can I access the global within a function or an action? Thanks     
asked by 05.10.2015 / 19:44
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

AFTNetworking in iOS 8.1.1 is in trouble?

I recently developed an app that uses AFTNetworking 2.0 and tested on my device using iPhone 4S iOS 8.0. However, iOS 8.1.1 customers can not send data from a registration. Unfortunately, I do not have a device with iOS 8.1.1 and I do not int...
asked by 21.11.2014 / 22:42
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 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
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