How to determine ARMv8 features at runtime on iOS?

I am trying to determine when optional ARMv8 cpu features are available on iOS at runtime. On OS X desktops, like i686, x86_64, PPC and PPC64 we can use sysctl. See, for example, PR 3108, SIGILL-free processor capabilities detection on MacOS X. The ...
more »

2017-08-11 16:08 (0) Answers

Open Button Link In Webview

i am very new to Xcode and don't know much about it , sorry for my silly question. i want to create app with 20 buttons on home page , and i want to attach them all in one ViewController Like if button1 clicked do this elseif button2 clicked do d...
more »

2017-08-10 17:08 (2) Answers

Swift UIWebView doesn't always work

I am currently using Xcode 8.3.3 and if I'm using a UIWebView I am getting this error you can see down below and then in some projects or some times the WebView doesn't work and in others it does. I already testet it with an empty project and yes it...
more »

2017-08-10 12:08 (2) Answers

How to refer al subview hierarchy in swift

Hello I'm trying to apply some styles to IBOutlets from Swift 3 code. But when I'm trying to refer the IBOutlet from my code, only works if I add the immediatelly superior UIView as IBOutlet. For example (adding font style to all label elements insi...
more »

2017-08-10 12:08 (1) Answers

How do I save an audio file to iCloud using Swift?

I have created an app using Swift 3 and Xcode 8.3.3 that records audio files and saves them to the app's Document directory. I would now like to save these files to iCloud to have them backed up. I have been able to save a simple record to iCloud u...
more »

2017-08-09 19:08 (1) Answers

Xcode: No Such Module 'Alamofire'

I keep getting the error No Such Module 'Alamofire' In my Xcode project swift file when using import Alamofire; the file is in a separate module within the project. I have tried the following; Build and Run Alamofire Target Comment out im...
more »

2017-08-09 18:08 (2) Answers

complete list of @IB* in xcode and their use cases

I'm currently learning iOS development in swift. In xcode, I know the most commonly used @IB are @IBAction and @IBOutlet, therefore other @IB such as @IBInspectable, @IBDesignable. But I was wondering, is there other @IB that are available and wha...
more »

2017-08-09 02:08 (2) Answers

Disable storyboard warnings

I avoid getting warnings in my swift code. However when it comes to storyboard requirements it's a bit harder for me. So for now i just want to disable xcode showing warnings regarding storyboard issues. I have tried the following without success: ...
more »

2017-08-08 06:08 (1) Answers

Expected identifier '(' in Xcode

I'm having a problem with this the first line of code, it says that there is an "expected identifier '('" Not sure if it has something to do with UIApplication. I've already declared UIApplication as a class. Someone please help me with this @in...
more »

2017-08-07 04:08 (1) Answers

Validating text inputs in swift

My code doesn't work, can you point out whats wrong. I am trying to validate user input in SNameInput, error label should change it's text when the input is not valid and STitle should change it's text when user is done typing in SNameInput and it is...
more »

2017-08-06 04:08 (1) Answers