Questions tagged as 'xcode'

1
answer

Property getting nil

I'm facing an issue where a property is getting nil with no explanation. NSMutableArray * lojas = [[NSMutableArray alloc] init]; for (int x = 0; x < lojaResultado.count; x++) { NSDictionary * listaAtributos = [lo...
asked by 20.05.2015 / 21:01
1
answer

Open VIewController iOS

How do I make the function below (when a navigation bar item is clicked) open another screen already created in Main.storyboard ? @objc func infoTapped (sender:UIButton) { }     
asked by 06.10.2017 / 19:45
1
answer

Recover project (application) installed on Iphone - Xcode

I have a project that was working and I installed it on the Iphone (to test) and now I would like to know if it is possible to do the reverse path and bring this project back to Mac (XCode)?     
asked by 20.11.2015 / 18:59
2
answers

How to insert link in button

Good, How do I insert a link into a button I tried as below and did not work. @IBAction func urlDisplay(_ sender: AnyObject) { UIApplication.sharedApplication().openURL(NSURL(String:"http://www.quatenus.co.ao")!) }     
asked by 01.10.2016 / 03:30
2
answers

Variable does not seem to be declared

Two issues: I do not understand why each end of text looks like \n . I declare a variable name , and when I call the variable in the middle of the text it does not seem to be declared. Xcode Version 7.3.1 (7D1014) Code:...
asked by 06.09.2016 / 02:36
1
answer

UICollectionViewController 3 columns auto layout

I'm creating a UICollectionViewController with 2 or 3 columns, when using autolayout in some Devices works perfectly but in others not, I did not find anything that speaks of how to dynamize these columns with objective-c. I found one in swif...
asked by 13.07.2016 / 01:16
1
answer

Get index of the element in Swift

I'm trying to use the indexOf to know the index of an object inside the array but I do not know which parameter (s) to pass. My code: /// Struct that define the track model
asked by 16.12.2015 / 18:33
1
answer

"OK" button in the alert message -

Someone can help me What is the right shape in Swift 2? asks to remove the "Let okAction", but then I lose the reference and the alert goes without button.    let okAction = UIAlertAction (title: "OK", style: UIAlertActionStyle.Default, ha...
asked by 10.03.2016 / 19:47
2
answers

Parse project with black bands

I'm using the Parse.com project in version 7 of Xcode, however, the app has a black stripe at the top and another at the bottom as shown in the image: I'm using the swift version of the project. Could anyone tell me what this means? I'v...
asked by 25.09.2015 / 22:43
1
answer

Display alert if you are not connected to the internet

How do I display an alert to the user if they are not connected to the internet?     
asked by 13.04.2016 / 04:15