Questions tagged as 'swift'

1
answer

UIImage Temporary

I need to download an image, it is displayed, however after displaying it I need to delete it from the device. But whenever I open the application again it is already loaded. func getPhoto(pathPhoto: String, imageview: UIImageView) {...
asked by 09.12.2014 / 16:46
0
answers

iOS 8 - Manually Changing Core Location Permissions

I'm developing an application for iOS 8 and require permission for CLLocationManager , but if the user does not accept the permission and tries to change in the privacy settings, the settings close at the time of selection (similar to a Cr...
asked by 17.12.2014 / 14:12
1
answer

Xml parser in Swift

I downloaded a ready project of rss Reader, it comes title description and image. But I'm trying to edit the same for my xml. see the codes: // // FeedTableViewController.swift // RSSReader // // Created by Training on 23/12/14. // Copy...
asked by 15.01.2015 / 21:20
1
answer

startMonitoringSignificantLocationChanges Does not work in the background

I'm making an app that uses the device's location service. It necessarily needs to be capturing the positions when there is a change of location and must capture in all situations ( background / foreground / killed), so I am using the startMonit...
asked by 12.04.2017 / 22:50
1
answer

File Download on IOS - Swift

I'm just programming a little time for IOS using the SWIFT language. I need to download a web file, I'm using NSURLSessionConfiguration, but this object only works for IOS 8+. And I want the app to run on devices with IOS 7+. Does anyone know...
asked by 13.05.2016 / 16:24
1
answer

How to work with response from Alamofire in Swift 4?

I have the following request that returns me a json I can not get the ulrs of live Alamofire.request(urlRequest).validate().responseJSON { response in print(response.data) do { if let data =...
asked by 10.01.2018 / 20:12
2
answers

How to reload data in a tableview without losing previous data (swift)

Hello, I have a tableview that will receive data on demand. however when I call the scrollViewDidEndDragging function that has a call to the tableview.reloadData () it overrides the previously loaded data. Load Data func carregaDados(pagina...
asked by 18.03.2015 / 03:40
2
answers

UILongPressGestureRecognizer does not work with my UIImageView

I'm trying to capture the long touch on my image. So I can send an action to you in a long touch. @IBOutlet weak var imageRecord: UIImageView! override func viewDidLoad() { super.viewDidLoad() let longPressRecognizer = UILongPressGes...
asked by 10.10.2018 / 15:18
1
answer

How to pick specific letters from a string - Swift2

How do I get a letra specified from a variable? var variavel = "teste"; I'd like to get a letra separada , I need to put each letter in a different variable Thank you!     
asked by 22.01.2016 / 18:34
2
answers

How to handle errors in WKWebview IOS Swift

When we access a website without internet, does the browser return a certain error page? in my WKWebview I would like this to happen instead of appearing a white screen, how do I intercept this error?     
asked by 01.10.2018 / 20:32