Data dodania Pytanie
2017-01-03 11:01 handle Mouse click event when clicking on AGSGraphic in ESRI map Swift IOS »
I've managed to show the Map layer on the page, now I need to handle the click event on the Graphics thats shown on that Map layer. Here is my code t...
(0) odpowiedzi
2017-01-03 04:01 countElements in Swift 3 »
How to write this part of the code in swift 3? I am building a notes app, and this part is about a title that is going to be displayed in tableView ce...
(2) odpowiedzi
2017-01-02 20:01 swift 2 character limit in a label ( string ) »
I have a converter app. converter I want the label to only go up to a 5 character limit based on a string. This is the code I have so far.( var calc...
(1) odpowiedzi
2017-01-02 11:01 Encode / Decode string to UTF-8 with Emojis »
I'm developping a messaging app between Android an iOS (Swift 2.2). Users must be able to send and receive Emojis : Hello 😀 I need to encode emoj...
(0) odpowiedzi
2017-01-02 09:01 How to push on new set of view controllers from one tab to another tab? »
I have a tabBarController with 2 tabs. Inside each tab there is a navigationController. Each navigationController has 3 child viewControllers ...
(2) odpowiedzi
2017-01-01 22:01 I was running a game that I'm creating and the app crashed with an error that says "SIGNAL SIGABRT" »
I was just running a game that I've been developing for some time, and noticed that the app crashed and it came into AppDelegate.swift with an error t...
(0) odpowiedzi
2017-01-01 21:01 addSubview not working after converting »
I upgraded xcode from 7.3.1 to 8 and converted to swift 2.2, other than the storyboard being a mess everything worked except adding a UIView programat...
(1) odpowiedzi
2017-01-01 11:01 Swift2 iOS Reachability Class and NSNotificatonCenter not receiving broadcast »
I have a tabBarController with 2 tabs and a Reachability class for the internet connection. Inside the AppDelegate's didFinishLaunching method I have...
(1) odpowiedzi
2016-12-31 18:12 Making CNContact on tableView presistant using NSUserDefaults »
I am trying to save the CNContact as an NSUserDefault object when the save button it pressed. Then When the App opens up I want the CNContacts to be p...
(0) odpowiedzi
2016-12-31 17:12 Sort an unsorted array with Closures »
let unsortedArray = [98,23,643,678,2,568,1,234,556,4] { (first:Int , second:Int) -> Bool in if first < second { return true ...
(1) odpowiedzi
2016-12-31 07:12 How to use search bar to fetch data from json result using swift? »
Requirement : i need to filter the JSON data in UITableView with UISearchBar so i placed UISearchBar (not UISearchBarController) to top of my view con...
(1) odpowiedzi
2016-12-30 23:12 Save contacts into tableview using core data »
I have an app that uses the Contacts framework for iOS 9+. I have made a tableview that holds some selected contacts by the users. I want to be able t...
(1) odpowiedzi
2016-12-30 01:12 Special drop shadow: Swift 2 »
In the image below, I have two types of drop shadows. In swift, I've used this function: func applyShadow(view: UIView){ view.layer.shadowColo...
(2) odpowiedzi
2016-12-29 12:12 Populate tableview using contacts framework »
I want to populate a tableview with contact details that I have entered in the app. first i have a table view controller that will show the list of ...
(0) odpowiedzi
2016-12-29 05:12 Xcode error: 'Cannot assign to value: function call returns immutable value' in table views »
I am confused as I am defining content of rows in a table view by a dictionary, but when ever I try to add it, it shows me an error. var places = [[...
(1) odpowiedzi
2016-12-28 22:12 From NSData to SecKeyRef in swift 2 »
I have a public/private key pair generated with RSACryptor.swift I am able to convert my public key into a base64 string to be stored on my server. I...
(1) odpowiedzi
2016-12-28 18:12 Open controller from app delegate »
I am trying to open a view controller from app delegate if a push notification is clicked with the code below func application(application: UIApplica...
(1) odpowiedzi
2016-12-28 13:12 fetch data of settings -> General -> About »
In the about section of iOS it has a lot of information about the device. Can I and Am I allowed to access this information? I want to fetch data ...
(2) odpowiedzi
2016-12-27 21:12 Updating an item in an array passed by reference »
What's the easiest/right way to update an item in an array? I want the caller to have the updated array as well. So: static func updateItem(updatedIt...
(2) odpowiedzi
2016-12-27 15:12 Sub UITableView is not updating height automatically in Swift »
I have a Main UITableView. I have created a custom UITableviewCell. I have set up another Sub UITableview to be displayed within the Custom Cell. Th...
(0) odpowiedzi
2016-12-27 06:12 How to pass image string value to the imageslide using swift »
I am developing a app using swift 2.2 in my app am using image slide show by refering this link https://github.com/zvonicek/ImageSlideshow i want to p...
(1) odpowiedzi
2016-12-26 23:12 How to convert Data to Int in Swift 3? »
There're a lot of sources explaining how to make it in Swift 2 which I took as a base: var value: Int = 0 let data: NSData = ...; data.getBytes(&...
(1) odpowiedzi
2016-12-25 21:12 Swift animation for periscope-style comments »
I am using this code for periscope-style comments in my iOS app (where the comment bubbles slide up from the bottom): https://github.com/yoavlt/Perisc...
(1) odpowiedzi
2016-12-24 18:12 Adjust text size to fit SKLabelNode with fixed width »
New to Spritekit and trying to fix the width of a SKLabelNode and then adjust the font of text to fit within the node accordingly. Have been looking ...
(0) odpowiedzi
2016-12-24 08:12 Swift two readLine/scanf/stdin input in Single line »
Is there anyway in swift we can get two inputs in single line.? Like C scanf("%d %d", &valueOne, &valueTwo); so i can enter 10 20 But in s...
(2) odpowiedzi
2016-12-22 21:12 NSData init?(contentsOf url: URL) migration from Swift 2 to Swift 3 »
New to iOS/Swift. I am trying to migrate a project (that simply fetches contents from a URL via the NSData init() method) from Swift 2 to Swift 3. The...
(1) odpowiedzi
2016-12-22 15:12 How to solve Xcode error message 'url' instance member cannot be used on type 'view controller' »
I typed the following swift code in Xcode and it shows error message 'url' instance member cannot be used on type 'view controller' here's my c...
(1) odpowiedzi
2016-12-22 02:12 Error Domain=NSURLErrorDomain Code=-1005 "The network connection was lost »
I am getting this error when using SwiftyBeaver logger, which tries to send data to the cloud via this code: func sendToServerAsync(str: String?, com...
(1) odpowiedzi
2016-12-21 16:12 swift byte[] in json object »
I'm trying to serialize json object like this let jsonObject: [String: Any] = [ "Description":problemDescription.text!, "Photo": byte...
(1) odpowiedzi
2016-12-21 10:12 How to hide or remove the default BarButtonItem call item in Toolbar »
As above title. I did the following: Drag a toolbar into Viewcontroller and aligned it below the status bar. There is a default barbuttonitem call i...
(0) odpowiedzi
2016-12-21 06:12 Alamofire Parameter missing in response »
I install pod file of Alamofire for calling web service and successfully retrieve data when there is no parameter pass to web service but when I try t...
(1) odpowiedzi
2016-12-20 15:12 How to load HTML string in browser in swift 2? »
To load HTML string in webview I use that code webView.loadHTMLString(embeddedString, baseURL: nil) How can I load HTML string in browser like safa...
(0) odpowiedzi
2016-12-20 15:12 Contacts Alert will not show up »
I am making an app that will access the user's contacts and display them in a table. I am only at the start of this build and wish to display the aler...
(0) odpowiedzi
2016-12-20 02:12 Changing the time interval of a Timer in swift spritekit »
So, I have this timer that is setup to run a specific function (which are both shown below) on a time interval variable called 'frequency' when I try ...
(2) odpowiedzi
2016-12-19 19:12 Can I use this converted Swift 3 code directly for supporting core data on older versions? »
I'm very much new to iOS Development, actually my project is ready but recently I came across an issue regarding CoreData support for older iOS versio...
(0) odpowiedzi