iOS Development is easy with XCode, Swift3, UITableView, cocatouch, let's build iPhone, iPad and Macbook Applications.

Run code only after asynchronous function finishes executing

I am relatively new to Swift and Xcode in general and am finding a lot of difficulty trying to figure this out. I am developing an app that utilizes the Parse.com backend server. In order not to block the main thread, whenever the app downloads anything from the server, it is done on a different […]

Automatic Preferred Max Layout Width is not available on iOS versions prior to 8.0

I opened an existing iOS project with Xcode6 beta6, and Xcode lists the following warning for both Storyboard and Xib files: Automatic Preferred Max Layout Width is not available on iOS versions prior to 8.0 I tried addressing the warning by setting the width as explicit like below: Yet this didn’t resolve the warnings. How […]

How to draw a transparent UIToolbar or UINavigationBar in iOS7

I would like an entirely transparent UIToolbar and/or UINavigationBar. I have tried the various incantations suggested for pre- and post-iOS 5 but none seem to work any more. How might this be accomplished in iOS 7?

NSDefaultRunLoopMode vs NSRunLoopCommonModes

Dear good people of stackoverflow, Just like the last time, I hereby bring up a question I recently stumble upon. I hope someone out there could shed some light on me. Whenever I try to download a big file behind UIScrollView, MPMapView or something, the downloading process gets halted as soon as I touch iPhone […]

UITapGestureRecognizer – make it work on touch down, not touch up?

What I’m using the tap event for is very time-sensitive, so I’m curious if it’s possible to make UITapGestureRecognizer activate when the user simply touches down, rather than requiring them to touch up as well?

Custom installed font not displayed correctly in UILabel

I’m trying to use a Helvetica Neue Condensed font which I got from the Adobe Font Collection Pro Package. Unfortunately, it seems to draw incorrectly when I use it within a UILabel. The line height seems to be calculated correctly (I think), but when the font is displayed, it is aligned to the very top […]

Is ARC really supported in iOS 4? The iOS 4.2 SDK is missing ARC-related symbols at linking time

I’ve read and heard since ARC was first announced that it was a compile-time thing and would be backwards-compatible with iOS 4. I have successfully refactored my project to ARC using Xcode 4.2’s automatic refactoring, and when compiled against the iOS 5.0 SDK, it works fine. However, if I try to compile against my iOS […]

Sprite Kit & playing sound leads to app termination

using ARC Just a problem I’ve run into- I have an SKScene in which I play a sound fx using SKAction class method [SKAction playSoundFileNamed:@”sound.wav” waitForCompletion:NO]; Now when I try to go to background, no matter that the sound was over, apparently iOS is terminating my app due to gpus_ReturnNotPermittedKillClient. Now only when I comment […]

What's the difference between synchronous and asynchronous calls in Objective-C, versus multi-threading?

For the longest time I thought asynchronous was synonymous to running something on a background thread, while synchronous meant on the main thread (blocking UI updates and interactions). I understand that not running on the main thread for expensive actions is because it doesn’t allow UI actions to occur as the main thread is occupied, […]

didSelectRowAtIndexPath not working, Swift 3

Can anyone see why in the world didSelectRowAtIndexPath would not be called? I have triple checked by delegate both in the code and in storyboard. class AddCard: UIViewController,UIPopoverPresentationControllerDelegate, UITableViewDataSource, UITableViewDelegate { @IBOutlet weak var cardView: UIView! @IBOutlet weak var tableView: UITableView! let tableItems = [“Background Color”,”Background Image”,”Font Style”,”Font Color”] let cellID = “cell” override func […]