Questions tagged as 'swift'

1
answer

How to navigate different screens in Swift using the didSelectRowAtIndexPath method?

I need to click on one of the array positions to go to a specific screen. DidSelectRowAtIndexPath method shows black screen and not the screen it should. Here's the code I've done so far: import UIKit class ViewController: UIViewControll...
asked by 17.07.2015 / 19:42
1
answer

How to create emails in Swift using MFMailComposerController correctly?

I'm having trouble creating an email with MFMailComposerController in Swift. When I try to assign self to emailController.mailComposerController I get an error stating that I can not assign TelaFinalViewController (self)...
asked by 15.05.2015 / 08:00
3
answers

Import a swift into another swift

I want to import a swift file into another swift file, how to proceed? Using Xcode 7.0 beta 3 via Swift 2 in an unsuccessful attempt     
asked by 31.07.2015 / 20:12
1
answer

Accessing Variables from Another Swift iOS Class

I have a Main class in my application, and in it I have created the variable cod that receives the value of 0 , in this class I also have a sequence of buttons that in them contains the event of changing the value of% % ,...
asked by 14.04.2015 / 18:32
1
answer

How to use Last.fm API?

I need to make an iOS app that works with the Last.fm API and it all starts by making a < a request to authenticate the user . My question is: how do I do this with Swift . I'm a beginner, so I do not quite understand how to make this requ...
asked by 19.07.2015 / 17:54
1
answer

UITableView - Table data disappearing

I have a% simple%. It is loaded from a UITableView and added as a .nib , it appears, loads the data, displays the same all correctly, however from the moment I select a cell, the data simply disappears. > I'm currently using Swift...
asked by 20.11.2014 / 12:12
2
answers

Reading .xlsm file (Excel) from my application

How do I read a .xlsm (Excel worksheet) file from my application? Basically I need to get the data from this worksheet. Take the value of each of the cells it has. Is there anything native for me to do this reading? Any library for...
asked by 01.12.2014 / 17:54
1
answer

iPhone 5 and iOS 8 - Location Permissions

All devices are OK, the permission request for location usage (independent of iOS 7 or iOS 8) appears. Only the iPhone 5 does not appear. Permission request code: var versionString = UIDevice.currentDevice().systemVersion.stringByReplacingO...
asked by 14.01.2015 / 18:00
1
answer

How to set my Primary Key?

I'm developing an application in Swift and started using Core Data recently. I need to define which attribute of my entity will be my primary key . For example: I have an entity that has the attributes of the class: id na...
asked by 07.11.2014 / 11:34
2
answers

Swift Picker View Example

Dear friends, how would you make a UIPickerView object with the simple array popular? example: var titulos = ["texto1", "texto2", "texto3", "texto4"] How to set this array in a UIPickerView?     
asked by 10.09.2014 / 00:17