Click here to Skip to main content
14,982,961 members
Everything / Programming Languages / Swift

Swift

Swift

Great Reads

by Vince Chan
Pwnage Checker is an iOS app that allows users to check whether an account has been compromised in a known data breach
by raddevus
Learn to create iOS apps using Xcode while you learn Swift. (If you've ever wanted to see iOS app dev in action, take a look at the screen shots.)
by pgmr_64804
Tree View in Swift for iOS that is easy to implement and use
by raddevus
Want to learn to write Swift code, but you don't have a Mac yet? Now you can write and compile Swift on Windows. Only takes about 15 minutes to set up.

Latest Articles

by Dener Araújo, André Marcos
A Mobile Application Development for a Private Network Connection on iOS Platform Using Prococol OpenVPN
by jfriedman
When you need a janky [unsafe] way to generate communitive hash codes
by Zhaohui Xing (Joey)
Swift classes for algorithm, including single linked list class, stack class, queue class
by Dennis E White
Programmatic iOS UI Development

All Articles

Sort by Score

Swift 

Please Sign up or sign in to vote.
16 Jun 2016
Vince Chan
Pwnage Checker is an iOS app that allows users to check whether an account has been compromised in a known data breach
Please Sign up or sign in to vote.
11 Dec 2018
raddevus
Learn to create iOS apps using Xcode while you learn Swift. (If you've ever wanted to see iOS app dev in action, take a look at the screen shots.)
Please Sign up or sign in to vote.
22 May 2016
pgmr_64804
Tree View in Swift for iOS that is easy to implement and use
Please Sign up or sign in to vote.
26 Oct 2016
raddevus
Want to learn to write Swift code, but you don't have a Mac yet? Now you can write and compile Swift on Windows. Only takes about 15 minutes to set up.
Please Sign up or sign in to vote.
5 Dec 2015
Vince Chan
How to display activity indicator with overlay
Please Sign up or sign in to vote.
7 Apr 2015
Nitheesh George
Swift is free but iMac and MacBook are not. You may have to upgrade OSX to install a new XCode version. And In a 3 year old Mac, you may not be able to install a latest version of OSX. Ultimately these all are business and business is for making profit and not for helping the people.install...
Please Sign up or sign in to vote.
5 May 2015
Rodrigo De Presbiteris (Presba)
Creating a iOS app with swift to show the water levels of the main reservoir system in Brazil.
Please Sign up or sign in to vote.
19 Mar 2017
Will J Miller
Programming tests are frequently used to screen job applicants. This article describes one problem given by a large modern technology company and its solution in swift.
Please Sign up or sign in to vote.
23 Nov 2019
Zhaohui Xing (Joey)
Swift classes for algorithm, including single linked list class, stack class, queue class
Please Sign up or sign in to vote.
31 May 2015
OriginalGriff
This isn't a question we can answer: all languages have "venture potential" - it depends what kind of market you are going into, what kind of products you are going to produce.For example, PHP works for websites, C++ doesn't. C++ works for native PC apps, but C# doesn't. C# can be used on PC,...
Please Sign up or sign in to vote.
21 Aug 2016
Dennis E White
Catching the bug… Server Side Swift
Please Sign up or sign in to vote.
2 Jan 2017
Afzaal Ahmad Zeeshan
You can develop the applications on Windows operating system, but to compile that project you will require to connect to a Mac system. Xamarin for instance, allows you to use Visual Studio for development, but it requires a Mac peer device to compile the project into native iOS based...
Please Sign up or sign in to vote.
10 Aug 2020
OriginalGriff
Quote: Thank you for your suggestion. However, i find that working specifically on the project would be more motivating, as I can get easily bored with the small projects. That's why I wanted to learn specifically aspects that I can apply to my...
Please Sign up or sign in to vote.
29 Jun 2021
Dener Araújo, André Marcos
A Mobile Application Development for a Private Network Connection on iOS Platform Using Prococol OpenVPN
Please Sign up or sign in to vote.
5 Oct 2014
Sergey Alexandrovich Kryukov
First of all, this is totally up to you. The note by Wes Aday, about "random stranger", is quite correct.But what to do? This is the usual self-referenced problem: to learn if you want to know for sure if you want to learn a language or not, you have to… learn it. This is what you can...
Please Sign up or sign in to vote.
5 Oct 2014
KarstenK
Some toughts whether to prefer Objective-C or Swift.
Please Sign up or sign in to vote.
10 Dec 2014
_Maxxx_
Assuming you only want to develop for IOS / Mac and not for other platforms (Windows, Android etc.) then Swift should be your choice; It is newer, but is I think intended to be the replacement for Objective C - eventually. so learning it now you will be at an advantage over others converting...
Please Sign up or sign in to vote.
25 Dec 2014
Sergey Alexandrovich Kryukov
As you can see from original documentation, Swift arrays are very flexible, so you can add elements to the array using the method append or the operator '+=': https://developer.apple.com/library/ios/documentation/Swift/Conceptual/Swift_Programming_Language/CollectionTypes.html[^].This way,...
Please Sign up or sign in to vote.
28 Jan 2015
PeteBarber
Optional Chaining with Dictionaries (in Swift)
Please Sign up or sign in to vote.
30 Aug 2015
Tadit Dash (ତଡିତ୍ କୁମାର ଦାଶ)
I am sorry, my answer will be, "absolutely, no". This is a place "for those who code".If you don't code, we can't help. so, simply I would say that, you try something on your own. Then if you face any issues while implementing, come back here in Code Project and ask another question...
Please Sign up or sign in to vote.
30 May 2016
Richard MacCutchan
This forum is for technical questions, not free recruiting.
Please Sign up or sign in to vote.
13 Jun 2016
OriginalGriff
Because the initial values apply to every instance of a Person, not just to the one you are talking about.If you change the initial value to "Jones" then it would work fine - until you tried to add a second person "Smith".The initial value is a "default placeholder" and is created as part of...
Please Sign up or sign in to vote.
1 Jul 2016
OriginalGriff
I refer you to your other question on the subject: Remove DRM from iTunes purchased movies[^]
Please Sign up or sign in to vote.
8 Feb 2017
Matthew Guest
I have a speed label that displays the speed of the user in the default mph. I have a slide up settings menu with two buttons on it "kilometers" & "milesPerHour" and am trying to toggle between kmh and mph. The code looks correct as I'm checking if the buttons have been selected which should...
Please Sign up or sign in to vote.
3 May 2018
KarstenK
I wrote a tip about How to Start the Homework or a Developer Career about my experiences and knowledges about programming. As I understand you, you have some knowledge in java which is very fine also for web and server development. But also javscript has become very powerful by the new...
Please Sign up or sign in to vote.
4 May 2018
W Balboos, GHB
I'm of the not-uncommon self-taught programmer type. Although I started with FORTRAN, it was the only language available to me at the time. Later, I learned VAX MACRO-ASSEMBLER. Now I knew, at least a little, what happened in the background and why it makes a difference. But as far as a...
Please Sign up or sign in to vote.
4 May 2018
Richard Eng
You should learn Smalltalk. Here are the key reasons: Smalltalk was designed for teaching programming to children. It was created by the brilliant visionary Alan Kay and his team at Xerox PARC. Smalltalk is supremely simple and easy to learn, even easier than Python. The complete syntax fits...
Please Sign up or sign in to vote.
30 Apr 2019
Dennis E White
Programmatic iOS UI Development
Please Sign up or sign in to vote.
25 Jan 2021
OriginalGriff
Quote: it doesnt work for me This is probably the most useless problem report we get - and we get it a lot. It tells us nothing about what is happening, or when it happens. So tell us what it is doing that you didn't expect, or not doing that...
Please Sign up or sign in to vote.
18 Dec 2017
amit_83
1 alternative  
how to convert sqlite datetime to nsdate in swift?My sqllite column is set as default value by current time stamp. Now i am trying to get the value using but exception raise when going to formate the valueBirthAt is the NSDate typevar date: String? =...
Please Sign up or sign in to vote.
6 Oct 2014
amit_83
It helped me public func getDateFromString(date: String?) -> NSDate? { if var date1 = date { let dateFormatter = NSDateFormatter() dateFormatter.dateFormat = "MM-yyyy-dd HH:mm:ss" dateFormatter.timeZone = NSTimeZone(name: "UTC") ...
Please Sign up or sign in to vote.
26 Oct 2014
Member 11181364
Hi,I have been looking for an example of how to create a grouped TableView in Swift but have had no luck.. I am working on a project to create a Categories Page and currently have a working search bar as well as the sub-categories listed in a TableView.. I'd like to be able to break these...
Please Sign up or sign in to vote.
10 Nov 2014
kailash solanki
HI..I am new in swift am working on database application using swift.am using FMDB framework for database so i am able to do insert,delete,update but amd going for select data that time having problem when i fire select query it doesn't returning any value from table using this...
Please Sign up or sign in to vote.
26 Jan 2015
Member 11403523
Using SWIFT - I have created a static tableview with multiple cells for users to enter information to add to a database.With one on the cells - I want to limit the input to be one of 5 choices rather than a text input. I thought UIPicker would be my best bet to allow user to choose one of...
Please Sign up or sign in to vote.
3 Feb 2015
Slava Kamzen
I'm trying to rewrite an iOS app from objective c into swift. I'm using serialization in order to send data over some sort of communication layer. In objective c I used #pragma pack (1) at the top of each struct in order to use sequential layout without padding between the data members.I...
Please Sign up or sign in to vote.
2 Mar 2015
Member 11491281
Is there any way to connect to your database in swift without JSON or any others frameworks
Please Sign up or sign in to vote.
2 Mar 2015
Anil Kumar Ch
Am new to swift.I have UISegmentcontrol with 3 segments i.e. New,Accepted,Completed. I need to display orders separate as New ,Accepted and Completed.and am using one tableview with custom cell for displaying orders data. am getting data from JSON and i can display the data on tableview.Now i...
Please Sign up or sign in to vote.
5 Mar 2015
Member 11502113
I'm having difficulties setting up OAuth for Swift. I have downloaded OAuth Swift but I do not know how to install it. In the instructions for installation on the page, it says I need to add target dependencies for the framework. When I tried it, it didn't work, it showed nothing. Can anybody...
Please Sign up or sign in to vote.
9 Mar 2015
Anil Kumar Ch
Hi,I am unable to categorize my data which i am able to get from JSON in swift.like for example: if i am having a list of data. i like to seperate my data based on one Column value. if i am having a Column named as Status under this column im having different status like: New, Accepted,...
Please Sign up or sign in to vote.
27 Mar 2015
Member 11561537
Hey I have this project in which the player is supposed to go up like Mega Jump and I want to animate the player so that when it goes left or right or down it changes its image according to it. Any ideas how I can achieve this? This is my code where I create the player.func createPlayer() ->...
Please Sign up or sign in to vote.
15 Apr 2015
Maciej Los
Please, read these:Localizing Your App[^]Let's localize your iPhone app![^]
Please Sign up or sign in to vote.
22 Apr 2015
ankur1163
2 alternatives  
I am making login page. Now, when i put username, password, it keeps rotating and doesnt do anything. I started it in debug mode and saw that it doesnt loop through code inside while statement>>>>>>>>>>>>>>>>>while(rdr.Read()) { int RetryAttempts =...
Please Sign up or sign in to vote.
22 Apr 2015
MdOK
Put a if condition outside the while loop and check the 'HasRows' property of the reader object like 'if(rdr.HasRows)'. By doing this you will make sure that the while loop will be executed only if there are rows in reader.
Please Sign up or sign in to vote.
22 Apr 2015
Abhinav S
Trywhile (reader.HasRows){ //Code reader.NextResult();}
Please Sign up or sign in to vote.
15 Jul 2015
Sergey Alexandrovich Kryukov
In the context of your question, there is no such thing as "should".Obi-Wan Kenobi said:You must do what you feel is right, of course.It's good that you don't want to make a choice of just learning one language, but wish to learn more. But it takes more, a lot more than that. Look at the...
Please Sign up or sign in to vote.
31 Jul 2015
Member 11878064
I want users to be able to send information on my app specifically to me. Ultimately, I want to be the sole receiver. Please help? Any help would be greatly appreciated.
Please Sign up or sign in to vote.
23 Aug 2015
Member 11929737
1 alternative  
Ok so I am making a game where things fall down the screen, its at a random where they spawn at the top on the X value randomly. sometimes when they spawn they go really close to the edge of the screen to the point where they are hard to see. So what I need is some way to make them spawn a...
Please Sign up or sign in to vote.
23 Aug 2015
Patrice T
Rather simple.compute once the values in global variable.Lets say:play field width is 800drop from edge is 100sprite width is 30drop width is computeddrop offset is computedvar fw= 800var de= 100var sw= 30var dw= fw-2*devar do= de-sw/2and in your function,...
Please Sign up or sign in to vote.
23 Aug 2015
paulortiz
1 alternative  
Hi Guys,We are currently in the process of migrating our codes from Javascript to Swift with Objective C supported libraries. Our encryption algorithms was written using Javascript, and I found out that we are using ASN1 structures. I was wondering if any of you knows any ASN1 libraries that...
Please Sign up or sign in to vote.
24 Aug 2015
KarstenK
Swift isnt so wide spread now and here, so you better to Objective-C. My tip would be interesting approch to wrap OpenSSL into Xcode.The professional software from Chilkat has also Swift Example.Lastly I found that ASN1C on Github.I really would like to hear from you how you solve...
Please Sign up or sign in to vote.
30 Aug 2015
Patrice T
Your question is not even precise enough to be able to give you a definitive answer.The only advice possible is to find tutorials and follow them.Try to Google with JavaScript tutorial or Swift tutorial
Please Sign up or sign in to vote.
2 Sep 2015
OriginalGriff
The same as for any other application:1) Consider the end product a user point of view.2) Specify your app.3) Design the app based on the specification.4) Code to the design.5) Test the code.6) Repeat from 1, 2, 3, 4, 5 as necessary until you have a product.7) Get it tested by real...
Please Sign up or sign in to vote.
10 Sep 2015
Manoj Kumar Choubey
Please check following linkhttp://stackoverflow.com/questions/29727618/find-duplicate-elements-in-array-using-swift[^]
Please Sign up or sign in to vote.
10 Sep 2015
raghunath sahoo
1 alternative  
I have array of dictionary. If duplicate data is present in the array of dictionary then a flag to be raised with the element name which is duplicate.The array of dictionary is below:[[project_code: 1, lob: lob_1], [project_code: 1, lob: lob_1], [project_code: 2, lob: lob_1],...
Please Sign up or sign in to vote.
15 Sep 2015
Member 11360293
1 alternative  
I created an SQLite table with a row of id integer PRIMARY KEY. I used this tutorial to integrate SQLite with my app. I'm trying to add that to an array of Ints. Here's my code:let all = "select id from \(self.tableName)"let fullArray = self.dbManager.loadDataFromDB(all)for...
Please Sign up or sign in to vote.
15 Sep 2015
KarstenK
your type cast from string to int is the problem. You cant use a type cast to extract the numeric value from a string object. You must convert it.I am not so fit on Swift but code like this should do the job.currentObject[0]!.toInt() //Swift 1.0let i:Int? = Int(currentObject[0]!) //...
Please Sign up or sign in to vote.
19 Sep 2015
HRamesh
make fallowing changes :1. var nItem: ItemList = frc.objectAtIndexPath(indexPath!) as! ItemList &2. In viewController.swift file var nItem : ItemList = nilThat will fix
Please Sign up or sign in to vote.
4 Oct 2015
KarstenK
I think your access path or accessor is wrong.for (XCUIElement *cell in tablesQuery.cells.allElementsBoundByIndex) {else you may access some wrong elements make some output.
Please Sign up or sign in to vote.
6 Oct 2015
RAHUL(10217975)
Hello All,I want to integrate SSO for Client. Client requires SSO (Windows Active Directory) using trust based connections. They might have multiple servers with domain/users. Any domain user of different server can access the WebApplication through SSO. I am new to this concept. I am...
Please Sign up or sign in to vote.
25 Nov 2015
ci3.co.uk
1 alternative  
Hi Code Project MembersI am in dire need of some help, please see below. I am having trouble finding a solution!iPhone 6 Demo AppUsing SpriteKitWhat I would like to do is to attach two SKSpriteNodes together.Node 1 square 100x100Node 2 square 50x50I would like the two...
Please Sign up or sign in to vote.
25 Nov 2015
ci3.co.uk
Forgot to add, both Nodes need to be affected by Physics
Please Sign up or sign in to vote.
29 Nov 2015
Stephen Hewison
Hi,I'm doing a feasibility analysis for an upcoming project.One of the requirements is to inject client specific code onto selected devices without having to include all the code at the time of build/publish.The client code would then be added to a protocol stack and be processed...
Please Sign up or sign in to vote.
4 Jan 2016
Member 10752313
I got the answer!![System.Web.Http.HttpPost][HttpRoute("api/Controller/Action")]public JsonResult Test([FromBody]TestModel test) { System.Web.Mvc.JsonResult usertoreturn = new System.Web.Mvc.JsonResult(); usertoreturn.Data = test; return...
Please Sign up or sign in to vote.
23 Dec 2015
K_TENG
i have a view controller that fetches info from server and displays in a custom view with a uiwebview as subview. the problem is the delegate methods are only called on the first instantiating. is there anything i need to do to get the methods to be called with every instantiation..?
Please Sign up or sign in to vote.
29 Dec 2015
SkyNetCommander
I am currently creating an app that needs a custom web API that stores the following things: business addresses, reviews, image gallery, some audio links to Soundcloud, Spotify and etc., images and exclusive deals with said businesses. Once written I will deploy this to a server so it is readily...
Please Sign up or sign in to vote.
30 Jun 2016
Member 12605630
1 alternative  
I want how to show the xml values to UItableview in swift.What I have tried:I want how to show the xml values to UItableview in swift. But I dont know how to pass the value to UItableview cell
Please Sign up or sign in to vote.
30 Jun 2016
Surya_Narayan
GitHub - nicklockwood/XMLDictionary: A simple way to parse and generate XML on iOS and Mac OS. Converts an XML file to an NSDictionary which can then be easily traversed using the standard Cocoa keyPath mechanism. Can also output the contents of any dictionary as XML.[^]Try this it will fix...
Please Sign up or sign in to vote.
1 Jul 2016
lucasPok
1 alternative  
I have downloaded one movie from iTunes store but I need to play video on my app not videos app provided by apple.Is there any video player source to play this movie?What I have tried:I have find many open source video players and VLC player for my app.But it didn't play movie at all.
Please Sign up or sign in to vote.
13 Jul 2016
Patrick Miron
I have been researching and learning how to create Core Data database that I was going to replicate and keep in the iCloud using CloudKit API... I have spent many hours doing so and now I get mixed messages that what I wanted to accomplish is now useless. Do they mean don't use CloudKit to...
Please Sign up or sign in to vote.
13 Jul 2016
Member 12634400
I am searching a key in an Array of dictionary like this.I am getting the correct value for result. But my problem is I want to convert this result in to Int value. I tried several ways but didnt help.This is one way I tried,, but this number checking condition doesn't get...
Please Sign up or sign in to vote.
13 Jul 2016
Member 12634577
Sir I am Try show string data in uiwebview i done this code but css not add this uiwebviewShow Normal Set codelet webView = UIWebView()var MyHTML: String = String()var MyCSS: String = String()webView.loadHTMLString(String(MyHTML), baseURL: nil) i dont know to add mycss...
Please Sign up or sign in to vote.
21 Sep 2016
OriginalGriff
Completely the wrong site - this is for development and coding questions.I'd suggest you talk to your parents or doctor.
Please Sign up or sign in to vote.
10 Apr 2017
Majid99
1 alternative  
The code work good when I was using Xcode 7.3 with iOS 9 but when I migrated to Xcode 8 using swift 3 ,the code below show me that runtime error.still finding a solution for itclass TableViewController: UITableViewController,NSFetchedResultsControllerDelegate,UISearchResultsUpdating...
Please Sign up or sign in to vote.
9 Nov 2016
Member 12837194
Is there any way to detect face in pre recorded video? I have tried with live streaming with AVCaptureSession along with CIDetector and was able to detect face for core images and live streaming. Is there any way for face detection in already recorded video, so that I am able to add emoji on...
Please Sign up or sign in to vote.
20 Nov 2016
Member 12837194
I am using "Native IOS API" and was able to detect the face feature of the user from "Front Angle" but will like to get detect user face features from "Side Angle". I am using "CIDETECTOR" at my end. I am using "CIDECTORTYPEFACE" at my end. Side angle for the image Please refer to the added...
Please Sign up or sign in to vote.
28 Apr 2017
Member 12921842
1 alternative  
Essentially, I am trying to access my variable "ar1" at a certain point in my code but I cannot. I am trying to return the value too but it returns NULL at that point.What is wrong here ?I tried like the below code :What I have tried:import Foundationimport UIKitclass Web...
Please Sign up or sign in to vote.
21 Jan 2017
Christopher Smit
1 alternative  
Good day,This may be a dumb question, but I only started with swift about 3 weeks ago. I am using SWRevealViewController to display a menu on my app. From this menu I am going to a certain view controller based on selection. From that selected view controller I would like to unwind back to...
Please Sign up or sign in to vote.
21 Jan 2017
Member 12960991
In your case, I think your are not dismissing the view.Can you show me the code, that how you are moving to second one from first. Example : If using this self.present(ViewController, animated: false, completion: nil)then you need to add below code on back button or submit...
Please Sign up or sign in to vote.
23 Jan 2017
Christopher Smit
Good day all,I recently ran into the problem where I found out that Apple does not allow developers to send an email directly from code without user interaction. This causes some difficulties on my app as I need a code generated email which is in HTML format to be sent from my website server...
Please Sign up or sign in to vote.
19 Mar 2017
Richard MacCutchan
pass functions as parameters to other functions in swift - Google Search[^].
Please Sign up or sign in to vote.
19 Mar 2017
Kornfeld Eliyahu Peter
It is always a good start to read the documentation...[^](Read all, but focus on Function Types as Parameter Types)After that do some work, and came back with actual question!!!
Please Sign up or sign in to vote.
10 Apr 2017
Surya_Narayan
Do one thing in the if statement try error as? NSError() . if let error = error as? NSError() { print("Error uploading: \(error.description)") return
Please Sign up or sign in to vote.
10 Apr 2017
Surya_Narayan
It feel like context is not properly set . Please try let ad = UIApplication.shared.delegate as! AppDelegate let context = ad.persistenceContainer.viewContext
Please Sign up or sign in to vote.
10 Apr 2017
Surya_Narayan
Tricks to convert UIImage into byte :- 1st convert UIImage() to NSData() . Then pass the NSData to the getArrayOfBytesFromImage() and get the return as NSMutableArray func getArrayOfBytesFromImage(imageData:NSData) -> NSMutableArray { // the number of elements: let count =...
Please Sign up or sign in to vote.
19 Apr 2017
Dharani karuppasamy
1 alternative  
In the below code . i want to store that url (It is JSON Data) as an array. please help me What I have tried: let ur = URL(string:"http://demo.cogzidel.com/dropinn416/mobile/search/discover?common_currency=INR&start=1") let task =...
Please Sign up or sign in to vote.
19 Apr 2017
Member 13131294
In JavaScript we can use JSON.stringify to convert an java script array into a JSON formatted string Check this if it can help you. Convert JavaScript Array to JSON - ProjectsGeek[^]
Please Sign up or sign in to vote.
20 Apr 2017
OriginalGriff
If you find code on the internet and you don;t understand it, that's your problem - particularly when it's your homework. Instead of finding code and hoping, throw that away, read the question, and write your own code. It may seem harder, but it's the only way you are going to learn properly -...
Please Sign up or sign in to vote.
27 Apr 2017
Member 13157880
let uid = FIRAuth.auth()?.currentUser?.uid let ref = FIRDatabase.database().reference().child("users").child((uid)!) ref.observeSingleEvent(of: .value, with: { snapshot in if let dictionary = snapshot.value as? [String:...
Please Sign up or sign in to vote.
28 Apr 2017
Dennis E White
not sure what you expect there to be inside of ar1? the way that I see it there should actually be nothing in it. I would recommend that you read up some more blocks and closure. as just a note the code block that you are running will execute separately from the thread where you are...
Please Sign up or sign in to vote.
4 May 2017
CHill60
You will need to download the Swift specs for their messages. I used to have them but I believe they are part of the support package so I wouldn't be able to share them anyway. Contact SWIFT (SWIFT – The global provider of secure financial messaging services[^]) or you might get some luck on the...
Please Sign up or sign in to vote.
14 May 2017
habed
I have a tableview that has different sections. Upon loading the view I hide the section and create a overlay button over the section which upon clicking it it displays a alert box asking for admin password PROBLEM: Now, I am trying to show the section that was initially hidden once the user...
Please Sign up or sign in to vote.
24 May 2017
Pratik Prajapati
I'm converting MPMediaItem to NSData using below code, when I'm playing a song using NSData in Bluetooth speakers song not making clear sound. Its like this code may reduce song quality when converting to NSData. So my question is how I maintain high quality song or any other way to get high...
Please Sign up or sign in to vote.
16 Jun 2017
Member 13263248
1 alternative  
Integrated Google maps in my iOS app 1. generated API key 2. defined key restriction for iOS app and app bundle ID 3. added pod 4. defined api key in my AppDelegate as func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplicationLaunchOptionsKey:...
Please Sign up or sign in to vote.
16 Jun 2017
Member 13263248
I forgot enable Google Maps iOS SDK in google developer console.
Please Sign up or sign in to vote.
5 Jul 2017
KarstenK
Create the Font before the UITabBarItem call. I guess it is nil, because the Font is nil because it is mispelled. Try to understand the error messages in detail.
Please Sign up or sign in to vote.
11 Jul 2017
Member 13304726
I am fairly new to Xcode and Swift, but am trying to create an app. My goal is that I have an Expandable/Collapse TableView. The expandable cell (the subcell of the main cell) will have 2 text fields (one on the right and one on the left) where the user can input information using the keyboard....
Please Sign up or sign in to vote.
2 Aug 2017
haneen hasan
I create apps which displayed pagecontroller each page created dynamically from the same class ,I tried to make some page rotatable in all orientation but i want to lock orientation for other page how I can do this ? What I have tried: I tried to make background thread that update activity...
Please Sign up or sign in to vote.
1 Sep 2017
Member 13389077
How can i get a different numbers of images from collectionCell into scrollView with use firebase? In my project i have three viewController's. FirstVC - collectionView inside a tableView. CollectionView need for display the main images for scroll their. TableView need for display the name and...
Please Sign up or sign in to vote.
2 Sep 2017
Graeme_Grant
I am not a Swift developer so I can't debug your code for you. What I can do is offer you direction on where to find useful information that should help you with your programming (aka: problem solving). Here is a quick Google Search: parse json in swift - Google Search[^] Which finds a number...
Please Sign up or sign in to vote.
4 Oct 2017
Member 13446275
1 alternative  
The code is in swift, trying to connect the names that in the friends list that at the bottom. To the message connected to the top. func invite(allGuests: [String]) { for guest in allGuests { invite(guest: guest) } print("Dear \(guest),") print("I'd...
Please Sign up or sign in to vote.
4 Oct 2017
OriginalGriff
Put the print statements inside the loop instead of outside it...
Please Sign up or sign in to vote.
18 Oct 2017
fmikele
There is a very useful library in Android development (RETROFIT2) to convert JSON into Java classes in one step. Is there a similar library in Swift to convert JSON to Swift classes? Thank you What I have tried: import Foundation let data: Data // received from a network request, for example...
Please Sign up or sign in to vote.
29 Oct 2017
nikunjA mcs
i want developed a MDM(mobile device management) application in ios. I searched and found a website which is almost exactly same for what I want to implement. Here is link: https://kidslox.com/ open above link and go in how it works section. We can achieve above functionality by mobile...
Please Sign up or sign in to vote.
14 Nov 2017
Member 13520929
1 alternative  
I'm trying to figure out a way to change the value of element in array to certain value in swift. I want to replace the value with a different value as follows: - 0 -> 0 - 1 -> 4 - 2 -> 3 - 3 -> 2 - 4 -> 1 - 5 -> 0 - 6 -> 1 - 7 -> 3 - 8 -> 2 - 9 -> 1 I have a group of 6...
Please Sign up or sign in to vote.
14 Nov 2017
Member 13520929
I just figured out the problem. It was due to code I had after this that converted this array to an integer. When 5 was the first number in the array, this code changed it to a 0 so when it was then converted into an integer, the 0 was dropped. I fixed it by converting to a string instead.
Please Sign up or sign in to vote.
17 Nov 2017
Member 12352823
Hi, I have a master gridview In that two link buttons. If I click on Linkbutton1 it should display data in another gridview.IF I click on linkbutton2 in it should display data another gridview. It's just like 2 childgirdview for single master gridview.Can anyone help me to How to do this through...
Please Sign up or sign in to vote.
25 Dec 2017
Member 11727674
I'm developing an application in swift that can create barcode.but my problem is that when i want to create barcode for 2textfield such as EmailAddress type of barcode i can not add two filters to it.im very new in swift can any body help me? @IBOutlet weak var textTextField: UITextField! ...
Please Sign up or sign in to vote.
28 Nov 2018
Member 13602577
1 alternative  
I have already made a tableview with tableview controller but I am really in need to know how to do the same thing with a custom sized tableview inside a view controller. my concern is only about inserting data because I need to have sections in it. What I have tried: I tried with tableview...
Please Sign up or sign in to vote.
24 Jan 2018
Member 13641227
I am trying to build a Cocoa Touch Class that is assigned to my Navigation Controller in my Storyboard to display an image in the Navigation Bar in the center. The app builds but the image is not displayed and I can figure out why. class NavBarImg: UINavigationController { ...
Please Sign up or sign in to vote.
25 Jan 2018
Member 13638713
1 alternative  
hi, i'm actually trying to get some basic information for my upcoming app project which i want to develop AN IOS APP in either C#,Python or swift and for now i decided to start by C# and my question is: i have designed my own app interface and i need it to be the one on the actual app and i...
Please Sign up or sign in to vote.
6 Feb 2018
Member 13665123
Hey there. I'm a newbie to Swift and I'm looking for some help. Please forgive any rookie mistakes. I'm currently running an app that uses the following update method to move a piece on the board that starts moving from the beginning of the game: override func update(_ currentTime:...
Please Sign up or sign in to vote.
19 Feb 2018
brenntengel@yahoo.fr
i've been looking for months now to find out how to record a live audio stream using swift ? please give me a hint a small code to start . regards What I have tried: This code is in java i want the same in Swift please while ((bufferLength = inputStream.read(buffer)) > 0 ...
Please Sign up or sign in to vote.
22 Mar 2018
rikidev
Hi guys, I'm making an app with a tableview controller that I use the latest version of xcode the 9.2, and development in swift 4, then the fact is that the cells are seen in this way . I would like to get this result: this import UIKit class CantieriViewController: UITableViewController { ...
Please Sign up or sign in to vote.
28 Mar 2018
rikidev
Hello guys, I have to read a json with swift formatted as follows: { IdCantiere: 324, IdCliente: 171, Filiale: 'SEDE', RagioneSociale: '--', NomeCantiere: '--', DataCreazioneCantiere: 2018-01-25T17:47:21.643Z, Tipologia: 'Consuntivo', StatoCantiere: 'Chiuso', ...
Please Sign up or sign in to vote.
28 Mar 2018
Member 13741389
i have a tableview that display users chatting messages from server. the tableview has a custom cell with one textview. i want to adjust the textView width according to the message width(content width) that has been loaded from server. using the mentioned code below , i could get the right...
Please Sign up or sign in to vote.
6 Apr 2018
Prakash Manikkam
1 alternative  
i need to distribute my app i have to purchase the developer account right? There is three type of accounts (Enterprise, Organisation, Individuals) So what is the difference between these accounts , limit of client and please advice me which account is better What I have tried: I Try to...
Please Sign up or sign in to vote.
13 Apr 2018
srinvasa denchanala
I amdeveloping a app for my own BLE device and trying to send TX Msg as let bytes : [UInt8] = [ 0x02, 0x10, 0x03, 0x01, 0x01, 0x01, 0x18 ] I should receive the message as the RX:[02 10 15 00 F8 FF 00 10 D1 10 D0 87 62 F2 CA 14 3F BA CE AB ] RX:[146, 185, 66, 202, 82] I could see only ...
Please Sign up or sign in to vote.
15 Apr 2018
Ali Asadi
my model class is a little complicated so swift 3 can't set the data to my model what can I do about it? if you need I my codes just ask me What I have tried: let google=GOogle(Json:myjson) class Google{ var results = [Results]() }
Please Sign up or sign in to vote.
17 Apr 2018
Member 13785253
Hi, I've been trying to create a search bar on my table and it didn't work I'm new to programming so I really need help my code has no errors but I don't know why it won't work here's the source code: GitHub - bshayerr/JobsList: UITableView with SearchBar[^] What I have tried: GitHub -...
Please Sign up or sign in to vote.
9 Jul 2018
Codeboyyy
4 alternatives  
I am interested in software development. I have learnt a little bit about some languages; Java, JavaScript, Python, HTML and CSS. In the future I want to get a job as a software developer and when I go on job descriptions of software developer jobs, they all say different stuff. So I am trying...
Please Sign up or sign in to vote.
5 May 2018
Codeboyyy
2 alternatives  
I am currently studying a BTEC level 3 General IT course. I am confused as to whether go university or do an apprenticeship. They both have their ups and downs. While an apprenticeship will more often than not, guarantee me a job, I am not sure how well it would pay as in after completing the...
Please Sign up or sign in to vote.
4 May 2018
Patrice T
Quote: Should I go to university or do an apprenticeship? I guess that university study will be more valuable for a future employer. In university, you will learn things that you will probably not learn in apprenticeship, and in this field, technical background is essential. ----- If you want...
Please Sign up or sign in to vote.
5 May 2018
KarstenK
On the long run achiving a higher education pays off. If you work early you may regret it in 10 or 20 years when you havent a diploma for getting into the team lead or managment levels. Normally a university diploma means higher skills, more responsible work and so more pay. Your working career...
Please Sign up or sign in to vote.
17 May 2018
rikidev
Goodmorning I have a node.js server that must receive json calls from a node.js application that uses express to manage routers, the ios application makes calls to routers passing json values! My problem is that I can not configure the apple ATS! How can I do? below I entered both the code and...
Please Sign up or sign in to vote.
15 Jun 2018
Richard MacCutchan
install swift on windows - Google Search[^]
Please Sign up or sign in to vote.
10 Aug 2018
Oleg Kremliakov
After print(html) I got clear HTML without data. import UIKit import WebKit class ViewController: UIViewController,WKNavigationDelegate{ let webView = WKWebView() func webView(_ webView: WKWebView, didFinish navigation: WKNavigation!) { print("loaded") ...
Please Sign up or sign in to vote.
12 Aug 2018
Member 13946784
I’m new to coding, and I mostly only know variables and booleans in swift. I’ve been trying to code a pokemon-esqe thing, and here’s what it looks like: Var charmander = “fire” Var squirtle = “water” Var bulbasaur = “grass” “Water” > “fire” Var battle1 = squirtle > charmander (true) (The...
Please Sign up or sign in to vote.
20 Aug 2018
Member 13955667
1 alternative  
I'm trying to find an image compression algorithm in the Swift programming language, as in the WhatsApp messenger. In the programming language Java under OS Android I found quickly, and under the platform iOS have difficulties. Here is the image compression algorithm for Android: public...
Please Sign up or sign in to vote.
20 Aug 2018
Patrice T
Quote: This algorithm compresses the image to 100 KB. No, this code do not compress the image to given size, it downscale the image. The reduced size is only a secondary effect. Quote: I'm trying to find an image compression algorithm You are not looking for a compression algorithm jpeg images...
Please Sign up or sign in to vote.
24 Aug 2018
kamil87
Hello everybody:) It's my first post so I would try describe my description the best how I can . Is it possibie to create aplication(web or mobile) where I can input *.dwg file and modify it(change something on it or put any comment)? I have read that there are aplication based on AutoCad...
Please Sign up or sign in to vote.
23 Aug 2018
Akshay K. Bura
I am using PDFKit to display my pdf files. I've integrated the searching functionality but I want to search only bold texts/words. I'm wondering is it possible to do what I'm looking for or does Apple don't allow it? Because String data type is from Foundation class and UIFont is from UIKit. I...
Please Sign up or sign in to vote.
17 Sep 2018
selimselcuk
Here are the iPhone Resolutions as you know; Iphone Xs Max 414x896 points Render at 3x, 1242x2688 px Iphone Xr 414x896 points Render at 2x, 828x1792 px Iphone X, Xs 375x812 points. Render at 3x, 1125x2436 px Iphone 6+, 6s+, 7+, 8+ 414x716 points, Render at 3x, 1242x2208 px Iphone 6, 6s, 7, 8...
Please Sign up or sign in to vote.
22 Oct 2018
Member 14024497
1 alternative  
Everything is functional and the app is operational, no errors detected. The error appears when I try to login into the app the login is successfully but an error pops 2018-10-22 14:08:22.109588-0500 123Taxi[3213:960305] A location manager (0x102613cf0) was created on a dispatch queue...
Please Sign up or sign in to vote.
22 Oct 2018
Member 14024497
problem solve DispatchQueue.main.async { if blog.response == "true" { for article in blog.articles { //aqui guardar los articulos que son id,nombre,email,etc let emailcapturado =...
Please Sign up or sign in to vote.
28 Oct 2018
Newbie2Swift
Here's my solution: import UIKit var repeatCounter = 1 var pickedNumbers = [Int]() repeat { let rangeValue = Int.random(in: 1...100) if pickedNumbers.contains(rangeValue) { print("\(rangeValue) already exists in the array") } else { ...
Please Sign up or sign in to vote.
5 Nov 2018
Member 14024497
Hi programmers, i had this problem. this is my Json echo '{ "ID":"'.$row[0].'", "Nombre":"'.$row[3].'", "Matricula":"'.$row[7].'", "Vehiculo":"'.$row[8].'", "Modelo":"'.$row[9].'", "Identificacion":"'.$row[10].'",...
Please Sign up or sign in to vote.
9 Nov 2018
Member 14024497
why is this error popping out MC] Reading from public effective user settings. Error: Couldn't decode data into Blog: dataCorrupted(Swift.DecodingError.Context(codingPath: [], debugDescription: "The given data was not valid JSON.", underlyingError: Optional(Error Domain=NSCocoaErrorDomain...
Please Sign up or sign in to vote.
28 Nov 2018
Member 14070271
I'm trying to create a signup page and what I want is when user forget to choose an option and select signup button must get alert "Firstly Select one option from above" What I have tried: else if !isValidEmail(testStr: email.text!) { let alert = UIAlertController(title:...
Please Sign up or sign in to vote.
28 Nov 2018
Member 14070271
class TableViewController: UIViewController, UITableViewDelegate, UITableViewDataSource{ var menu: Array = [String]() override func viewDidLoad() { super.viewDidLoad() menu = ["home", "Logout"] } func tableView(_ tableView: UITableView,...
Please Sign up or sign in to vote.
3 Jun 2019
Ash_savvy
1 alternative  
is there any pod for giving shadow effects to buttons and other control in swift 4.2? Please help me with that! It's been only two weeks I started swift, and two weeks I spent for this!! Someone please help me!!. What I have tried: I have tried Material design MDKit! but doesn't worked in...
Please Sign up or sign in to vote.
23 Jun 2019
drobotjosh
I am having a lot of troublefiguring out why my projectile will not shoot the image of luke. I have tried many different methods to try and counteract this but none of the strategies have seem to worked. I would really love some guidance and apologies in advance for the amount of code. import...
Please Sign up or sign in to vote.
10 Nov 2019
Richard MacCutchan
Start by checking to see what options are available in the documentation: WKWebView - WebKit | Apple Developer Documentation[^]
Please Sign up or sign in to vote.
19 Apr 2020
Cody O'Meara
I am making an app that has many tabs that will go to different links on my website depending on the tab Item. I looked up how to get a website on using the webView. I added the webview and made a small area to show for showing that it is not...
Please Sign up or sign in to vote.
11 Jun 2020
Member 14820609
I am designing a login screen app in which I have to implement the OTP verification screen. I googled and found this article, this the same which I want to implement in my app as well. But when I have done the implementation and tried running my...
Please Sign up or sign in to vote.
21 Sep 2020
Member 11588640
1 alternative  
Based on various sources, I have implemented CallKit like below, but my app is not dialing. Any ideas? No errors are being reported, my phone has wifi calling enabled, and my provider supports it. What I have tried: Here is what I have: let...
Please Sign up or sign in to vote.
21 Sep 2020
Dave Kreskowiak
You're probably going to have to ask your question on the Apple Developer Forums[^]. The chances of anyone here with experience on that library are very low.
Please Sign up or sign in to vote.
22 Sep 2020
Member 12959299
It was a rookie mistake. I had named the Segue incorrectly. It is “showCart” in the ProductViewController, while I was naming it “ShowCart” i.e. upper case letter “S”. It is puny but formidable ! Anyways, thanks for looking into my problem.
Please Sign up or sign in to vote.
9 Oct 2020
Richard MacCutchan
Quote: Any tips on how to find people? Do what everyone else does and pay for advertising.
Please Sign up or sign in to vote.
10 Oct 2020
Member 11588640
I have certificates, identifiers, provisioning profiles, and a developer account over them all. Including my app extension target which is embedded in my app. Yet my app extension target does not allow me to add Siri to "Signing and...
Please Sign up or sign in to vote.
20 Dec 2020
Batuhan Baran
I'm creating more than one textfield according to user's input. When user enters 3 then I will create 3 textfields using foreach loop but I don't know how I can handle inputs that will come from these textFields? also I want to save these inputs...
Please Sign up or sign in to vote.
1 Jan 2021
Andy Allinger
Could this be done by sonar? The user puts the phone on his head, then the phone sends out a chirp, the sound wave bounces off the ground and the microphone hears it.
Please Sign up or sign in to vote.
14 Mar 2021
dontknowwhatimdoing
I'm trying to make a tableView of cards in a deck that have two scopes Questions and Rating. this is my code: import UIKit class DeckTableViewController: UITableViewController, UISearchBarDelegate { static let...
Please Sign up or sign in to vote.
15 Apr 2021
CPallini
You know, you may accomplish this task using a function returning the complex number obtained multiplying x by sqrt(-1). Using other approaches you have to return, together with the integer result, and additional info. There are several ways to...
Please Sign up or sign in to vote.
23 Apr 2021
zara7
I am working on an iOS program using Swift. I am also using Parse for this program. What is the best way for me to update a user level when a user accesses their profile and tries to see their level. How do I update it? Can anyone help, I am...
Please Sign up or sign in to vote.
14 May 2021
SeanChupas
The obvious answer to your question is Yes, and No. Is it easy? Only you can answer that. What is easy for one person may be hard for another. Apple claims it is a great first language, https://developer.apple.com/swift/[^]. I suggest you...
Please Sign up or sign in to vote.
14 Jun 2021
Abbas Gujjar
Suppose we navigate to child view and when the Parent View updates then automatically back navigation performs up to Parent View. Can we disable this Behaviour? What I have tried: I have a list of card views and when I click on one of them...
Please Sign up or sign in to vote.
6 Apr 2018
OriginalGriff
Quote: Difference between enterprise, organisation, individuals Apple id ? See here: Choosing a Membership[^] Which one is "better" depends on what kind of company you are, and what you are plannign on doing.
Please Sign up or sign in to vote.
10 Aug 2020
Patrice T
To learn programming: You have to know that you can do pretty much anything in any language, simply some languages are harder for beginners because there is more pitfalls to handle. You need to master a set of techniques that are the basis of the...
Please Sign up or sign in to vote.
30 Oct 2014
Ui-Sing So
The method doesn't replace existing Computer Language. Natural Language and Computer Language have to cooperate with each other.
Please Sign up or sign in to vote.
6 Jul 2015
Matteo Manferdini
A guide on how to be on top of iOS development
Please Sign up or sign in to vote.
30 Mar 2016
CodeProject, Val Polouchkine
Welcome to our continuing series of CodeProject interviews in which we talk to developers about their backgrounds, projects, interests and pet peeves. In this installment we talk to Val Polouchkine, a Developer Advocate for Twitter.
Please Sign up or sign in to vote.
7 Aug 2014
Madhur Kapoor
Introduction to Swift
Please Sign up or sign in to vote.
18 Dec 2017
amit_83
1 alternative  
how to convert sqlite datetime to nsdate in swift?My sqllite column is set as default value by current time stamp. Now i am trying to get the value using but exception raise when going to formate the valueBirthAt is the NSDate typevar date: String? =...
Please Sign up or sign in to vote.
6 Oct 2014
amit_83
It helped me public func getDateFromString(date: String?) -> NSDate? { if var date1 = date { let dateFormatter = NSDateFormatter() dateFormatter.dateFormat = "MM-yyyy-dd HH:mm:ss" dateFormatter.timeZone = NSTimeZone(name: "UTC") ...
Please Sign up or sign in to vote.
26 Oct 2014
Member 11181364
Hi,I have been looking for an example of how to create a grouped TableView in Swift but have had no luck.. I am working on a project to create a Categories Page and currently have a working search bar as well as the sub-categories listed in a TableView.. I'd like to be able to break these...
Please Sign up or sign in to vote.
10 Nov 2014
kailash solanki
HI..I am new in swift am working on database application using swift.am using FMDB framework for database so i am able to do insert,delete,update but amd going for select data that time having problem when i fire select query it doesn't returning any value from table using this...
Please Sign up or sign in to vote.
26 Jan 2015
Member 11403523
Using SWIFT - I have created a static tableview with multiple cells for users to enter information to add to a database.With one on the cells - I want to limit the input to be one of 5 choices rather than a text input. I thought UIPicker would be my best bet to allow user to choose one of...
Please Sign up or sign in to vote.
3 Feb 2015
Slava Kamzen
I'm trying to rewrite an iOS app from objective c into swift. I'm using serialization in order to send data over some sort of communication layer. In objective c I used #pragma pack (1) at the top of each struct in order to use sequential layout without padding between the data members.I...
Please Sign up or sign in to vote.
2 Mar 2015
Member 11491281
Is there any way to connect to your database in swift without JSON or any others frameworks
Please Sign up or sign in to vote.
2 Mar 2015
Anil Kumar Ch
Am new to swift.I have UISegmentcontrol with 3 segments i.e. New,Accepted,Completed. I need to display orders separate as New ,Accepted and Completed.and am using one tableview with custom cell for displaying orders data. am getting data from JSON and i can display the data on tableview.Now i...
Please Sign up or sign in to vote.
5 Mar 2015
Member 11502113
I'm having difficulties setting up OAuth for Swift. I have downloaded OAuth Swift but I do not know how to install it. In the instructions for installation on the page, it says I need to add target dependencies for the framework. When I tried it, it didn't work, it showed nothing. Can anybody...
Please Sign up or sign in to vote.
9 Mar 2015
Anil Kumar Ch
Hi,I am unable to categorize my data which i am able to get from JSON in swift.like for example: if i am having a list of data. i like to seperate my data based on one Column value. if i am having a Column named as Status under this column im having different status like: New, Accepted,...
Please Sign up or sign in to vote.
27 Mar 2015
Member 11561537
Hey I have this project in which the player is supposed to go up like Mega Jump and I want to animate the player so that when it goes left or right or down it changes its image according to it. Any ideas how I can achieve this? This is my code where I create the player.func createPlayer() ->...
Please Sign up or sign in to vote.
15 Apr 2015
Maciej Los
Please, read these:Localizing Your App[^]Let's localize your iPhone app![^]
Please Sign up or sign in to vote.
22 Apr 2015
ankur1163
2 alternatives  
I am making login page. Now, when i put username, password, it keeps rotating and doesnt do anything. I started it in debug mode and saw that it doesnt loop through code inside while statement>>>>>>>>>>>>>>>>>while(rdr.Read()) { int RetryAttempts =...
Please Sign up or sign in to vote.
22 Apr 2015
MdOK
Put a if condition outside the while loop and check the 'HasRows' property of the reader object like 'if(rdr.HasRows)'. By doing this you will make sure that the while loop will be executed only if there are rows in reader.
Please Sign up or sign in to vote.
22 Apr 2015
Abhinav S
Trywhile (reader.HasRows){ //Code reader.NextResult();}
Please Sign up or sign in to vote.
15 Jul 2015
Sergey Alexandrovich Kryukov
In the context of your question, there is no such thing as "should".Obi-Wan Kenobi said:You must do what you feel is right, of course.It's good that you don't want to make a choice of just learning one language, but wish to learn more. But it takes more, a lot more than that. Look at the...
Please Sign up or sign in to vote.
31 Jul 2015
Member 11878064
I want users to be able to send information on my app specifically to me. Ultimately, I want to be the sole receiver. Please help? Any help would be greatly appreciated.
Please Sign up or sign in to vote.
23 Aug 2015
Member 11929737
1 alternative  
Ok so I am making a game where things fall down the screen, its at a random where they spawn at the top on the X value randomly. sometimes when they spawn they go really close to the edge of the screen to the point where they are hard to see. So what I need is some way to make them spawn a...
Please Sign up or sign in to vote.
23 Aug 2015
Patrice T
Rather simple.compute once the values in global variable.Lets say:play field width is 800drop from edge is 100sprite width is 30drop width is computeddrop offset is computedvar fw= 800var de= 100var sw= 30var dw= fw-2*devar do= de-sw/2and in your function,...
Please Sign up or sign in to vote.
23 Aug 2015
paulortiz
1 alternative  
Hi Guys,We are currently in the process of migrating our codes from Javascript to Swift with Objective C supported libraries. Our encryption algorithms was written using Javascript, and I found out that we are using ASN1 structures. I was wondering if any of you knows any ASN1 libraries that...
Please Sign up or sign in to vote.
24 Aug 2015
KarstenK
Swift isnt so wide spread now and here, so you better to Objective-C. My tip would be interesting approch to wrap OpenSSL into Xcode.The professional software from Chilkat has also Swift Example.Lastly I found that ASN1C on Github.I really would like to hear from you how you solve...
Please Sign up or sign in to vote.
30 Aug 2015
Patrice T
Your question is not even precise enough to be able to give you a definitive answer.The only advice possible is to find tutorials and follow them.Try to Google with JavaScript tutorial or Swift tutorial
Please Sign up or sign in to vote.
2 Sep 2015
OriginalGriff
The same as for any other application:1) Consider the end product a user point of view.2) Specify your app.3) Design the app based on the specification.4) Code to the design.5) Test the code.6) Repeat from 1, 2, 3, 4, 5 as necessary until you have a product.7) Get it tested by real...
Please Sign up or sign in to vote.
10 Sep 2015
Manoj Kumar Choubey
Please check following linkhttp://stackoverflow.com/questions/29727618/find-duplicate-elements-in-array-using-swift[^]
Please Sign up or sign in to vote.
10 Sep 2015
raghunath sahoo
1 alternative  
I have array of dictionary. If duplicate data is present in the array of dictionary then a flag to be raised with the element name which is duplicate.The array of dictionary is below:[[project_code: 1, lob: lob_1], [project_code: 1, lob: lob_1], [project_code: 2, lob: lob_1],...
Please Sign up or sign in to vote.
15 Sep 2015
Member 11360293
1 alternative  
I created an SQLite table with a row of id integer PRIMARY KEY. I used this tutorial to integrate SQLite with my app. I'm trying to add that to an array of Ints. Here's my code:let all = "select id from \(self.tableName)"let fullArray = self.dbManager.loadDataFromDB(all)for...
Please Sign up or sign in to vote.
15 Sep 2015
KarstenK
your type cast from string to int is the problem. You cant use a type cast to extract the numeric value from a string object. You must convert it.I am not so fit on Swift but code like this should do the job.currentObject[0]!.toInt() //Swift 1.0let i:Int? = Int(currentObject[0]!) //...
Please Sign up or sign in to vote.
19 Sep 2015
HRamesh
make fallowing changes :1. var nItem: ItemList = frc.objectAtIndexPath(indexPath!) as! ItemList &2. In viewController.swift file var nItem : ItemList = nilThat will fix
Please Sign up or sign in to vote.
4 Oct 2015
KarstenK
I think your access path or accessor is wrong.for (XCUIElement *cell in tablesQuery.cells.allElementsBoundByIndex) {else you may access some wrong elements make some output.
Please Sign up or sign in to vote.
6 Oct 2015
RAHUL(10217975)
Hello All,I want to integrate SSO for Client. Client requires SSO (Windows Active Directory) using trust based connections. They might have multiple servers with domain/users. Any domain user of different server can access the WebApplication through SSO. I am new to this concept. I am...
Please Sign up or sign in to vote.
25 Nov 2015
ci3.co.uk
1 alternative  
Hi Code Project MembersI am in dire need of some help, please see below. I am having trouble finding a solution!iPhone 6 Demo AppUsing SpriteKitWhat I would like to do is to attach two SKSpriteNodes together.Node 1 square 100x100Node 2 square 50x50I would like the two...
Please Sign up or sign in to vote.
25 Nov 2015
ci3.co.uk
Forgot to add, both Nodes need to be affected by Physics
Please Sign up or sign in to vote.
29 Nov 2015
Stephen Hewison
Hi,I'm doing a feasibility analysis for an upcoming project.One of the requirements is to inject client specific code onto selected devices without having to include all the code at the time of build/publish.The client code would then be added to a protocol stack and be processed...
Please Sign up or sign in to vote.
4 Jan 2016
Member 10752313
I got the answer!![System.Web.Http.HttpPost][HttpRoute("api/Controller/Action")]public JsonResult Test([FromBody]TestModel test) { System.Web.Mvc.JsonResult usertoreturn = new System.Web.Mvc.JsonResult(); usertoreturn.Data = test; return...
Please Sign up or sign in to vote.
23 Dec 2015
K_TENG
i have a view controller that fetches info from server and displays in a custom view with a uiwebview as subview. the problem is the delegate methods are only called on the first instantiating. is there anything i need to do to get the methods to be called with every instantiation..?
Please Sign up or sign in to vote.
29 Dec 2015
SkyNetCommander
I am currently creating an app that needs a custom web API that stores the following things: business addresses, reviews, image gallery, some audio links to Soundcloud, Spotify and etc., images and exclusive deals with said businesses. Once written I will deploy this to a server so it is readily...