Data dodania Pytanie
2017-06-11 16:06 Swift 4 Cannot invoke 'index' with an argument list of type »
I have a problem with calling the array method index(of:). MyClass inherits from UIViewController and conforms to the MyDelegate protocol. //self.vie...
(1) odpowiedzi
2017-06-11 13:06 Converting mutable struct to immutable in Swift »
I've searched a lot, read up on functional programming, and can't seem to find a straightforward answer to my problem. I'm creating a game utility lib...
(1) odpowiedzi
2017-06-11 13:06 Next Button like Navigation's Back Button »
I want to display Next Button just like Back Button but the rightBarButton does not touch to end of the screen like the back barButton. let b...
(1) odpowiedzi
2017-06-10 21:06 Change the color of all nodes in a scene? »
So this may seem like a stupid question; however, I'll see if anyone has an answer. Is there any way to change the color of all nodes in a scene in ...
(1) odpowiedzi
2017-06-10 16:06 Get notified of HLS segment requests in Swift »
I am writing an iOS app in Swift for HLS live streaming. I want my app logic to be notified when each HLS segment request is initiated during playback...
(1) odpowiedzi
2017-06-10 15:06 Capture image with GPUImage filter on Swift »
I'm using GPUImage Framework for Image filters. I have applied the ToonFilter() on camera for cartoon filter effect. My issue is while capture image...
(0) odpowiedzi
2017-06-10 01:06 Most optimal method of implementing tappable shapes? »
I'm building an app that provides an editable canvas similarly to photoshop or illustrator (currently using SpriteKit). I'm encountering some performa...
(1) odpowiedzi
2017-06-09 22:06 Why would an empty NSMutableData be optional? »
I'm converting a project from Objective-C to Swift. In it, there is a NSMutableData object that was originally instantiated like this: NSMutableData...
(2) odpowiedzi
2017-06-09 22:06 PhotoPicker discovery error: Error Domain=PlugInKit Code=13 »
I'm trying to display an image from the photo library in a UIImageView The full error is: 2017-06-09 21:55:59.063307+0200 firstapp2.0[12873:11207...
(1) odpowiedzi
2017-06-09 17:06 How to convert a UIImage to a CVPixelBuffer »
Apple's new CoreML framework has a prediction function that takes a CVPixelBuffer. In order to classify a UIImage a conversion must be made between th...
(1) odpowiedzi
2017-06-09 04:06 iOS - Load cells one by one »
I want to load the cell of a collection view one by one using the API collectionView.insertItems(at:). There are many answers online which accomplish ...
(2) odpowiedzi
2017-06-09 01:06 Is there any risk upgrading to Xcode 9 while working on projects to be released soon? »
I'm currently working on an app that is soon to be released. This would tend to push me to wait before upgrading to Xcode 9 beta just to make sure my ...
(1) odpowiedzi
2017-06-08 17:06 Thread 1: signal SIGABRT AppDelegate.swift »
I tried to compile my first iOS Hello app. I have ViewController.swift // // ViewController.swift // My First Project import UIKit class ViewC...
(3) odpowiedzi
2017-06-08 13:06 iOS - Today extension widget cleared over time »
Situation as it should be We have a today widget that shows a maximum of 6 buttons depending on data set in the corresponding app. This data is sha...
(0) odpowiedzi
2017-06-08 12:06 Expanding the cell based on the web-content same like Skype iOS application »
I have a requirement where I need to create the UI same like Skype iOS application for display the web-content. For that I used the UICollectionView...
(0) odpowiedzi
2017-06-07 09:06 Code migration from Swift 2.x to Swift 4 »
We have big enough project which is built up with Swift 2.x and now Apple has just released Swift 4 so to move forward for latest version of Swift whi...
(3) odpowiedzi
2017-06-07 04:06 ARKit example Swift »
I downloaded Xcode 9 beta, followed Apples tutorials and realized my phone (iPhone 6) does not have the A9 chip required for the ARWorldTrackingSessio...
(2) odpowiedzi
2017-06-07 00:06 Convert Image to CVPixelBuffer for Machine Learning Swift »
I am trying to get Apple's sample Core ML Models that were demoed at the 2017 WWDC to function correctly. I am using the GoogLeNet to try and classify...
(2) odpowiedzi
2017-06-06 19:06 How do I use custom keys with Swift 4's Decodable protocol? »
Swift 4 introduced support for native JSON encoding and decoding via the Decodable protocol. How do I use custom keys for this? E.g., say I have a st...
(1) odpowiedzi
2017-06-06 14:06 How can I deal with @objc inference deprecation with #selector() in Swift 4? »
I'm trying to convert my project's source code from Swift 3 to Swift 4. One warning Xcode is giving me is about my selectors. I add a target to a but...
(2) odpowiedzi
2017-06-06 06:06 How do I do a cross platform encryption method working in both IOS and android (AES encryption only..)? »
I have been recently assigned a task of encrypting my links and parameters i pass in dataTaskWithRequest in swift. The main headache is it should prod...
(0) odpowiedzi
2017-06-06 01:06 The use of Swift 3 @objc inference in Swift 4 mode is deprecated? »
Briefly, while using Xcode 9 Beta, I have run into the following warning: The use of Swift 3 @objc inference in Swift 4 mode is deprecated. Please ad...
(2) odpowiedzi
2017-06-05 18:06 How to wait for Function to finish before continuing »
In my current project I want to be able to display the users current position on a map. I have implemented this functionality via the requestLocation...
(3) odpowiedzi
2017-06-05 13:06 Dictionary to JSON being serialised twice in swift 3 »
I'm trying to make a post request with the following dictionary which is converted to JSON let store = [ "newTask" : [ "proje...
(1) odpowiedzi
2017-06-05 09:06 How to refer to a cell outside of cellForRowAtIndexPath »
I am trying to update a label in a cell outside of override func tableView(tableView: UITableView, cellForRowAtIndexPath indexPath: NSIndexPath) -&g...
(5) odpowiedzi
2017-06-04 23:06 objective c to swift conversion. (#define and weak) »
I am stuck in converting #define and weak from objective c to swift. I tried to use objective c to swift convertor, but I think the result of conversi...
(1) odpowiedzi
2017-06-04 17:06 Change node.name inside of touch without running again? »
I want to click on a certain spritenode and change the value of that spritenode. Here is the problem. When i do that, and set a if statement it knows ...
(1) odpowiedzi
2017-06-04 07:06 How to build subsections in an NSFetchedResultsController »
I'm building an expense tracker where an Expense can belong to only one Category but can have multiple Tags. This is my object graph: In the screen...
(2) odpowiedzi
2017-06-04 02:06 What is the benefit of define constant by closure in Swift 3 »
let a: UIView = { let a = UIView() a.frame = CGRect(x: 0, y: 0, width: 20, height: 20) return a }() I saw a lot of people's Swift source...
(1) odpowiedzi
2017-06-03 15:06 Get IndexPath of CollectionViewCell outside of Cell »
First of all I am a newbie in swift, so be gentle. I have a problem fetching the indexPath of the cell outside of the cell. I want to get that index p...
(3) odpowiedzi
2017-06-03 14:06 Make a unit test wait for a async call inside another method »
I'm testing that all my data are correctly loaded in a UIViewController with a UITableView. The code loading the data and populating the table is ins...
(1) odpowiedzi
2017-06-03 13:06 Sending an image via POST in a Swift Playground »
I try to send an image to the MS Cognitive Services Visions API in a Swift Playground. The message I get as response is: Response ["requestId": …,...
(2) odpowiedzi
2017-06-03 00:06 Reuse UICollectionView across multiple UICollectionViewControllers »
I have a table view where each row contains a collectionView. Each collectionView is only one row tall and scrolls horizontally. So, if you can imagin...
(2) odpowiedzi
2017-06-02 16:06 Agent following path moves forward indefinitely »
I am trying to make a sprite move towards a point while avoiding some obstacles. The graph that I am using is a GKObstacleGraph, obtained from this sc...
(0) odpowiedzi
2017-06-02 14:06 Xcode 8.3.2: SourceKitService and lldb-rpc-server take more memory for specific project »
I am not using Xcode beta version. The issue when I try to do a Build or Run the code it takes 1-2 minute time normally. When I work more for around 5...
(0) odpowiedzi