Recent Comments

There are a total of 589 comments on this site.
Below are the most recent 30 of them, newest at the top.

Jay Versluis on How to test which iOS Hardware your app is running on

Thursday, 13th September 2018

Pass I'm afraid - I'm not using the query in any of my Apps on the App Store at the moment. App Store rejections are a dark veiled mystery to most of us :-)

julian on How to test which iOS Hardware your app is running on

Thursday, 13th September 2018

Hi Jay, I had a question that i will just drop here: Could the query of the "hw.machine" flag cause the rejection of an App in the App Store? Regards, Julipan

Jay Versluis on How to share things with a UIActivityViewController

Wednesday, 8th August 2018

Hi Ali, it's difficult to diagnose this without seeing your code, but this error generally indicates that the class you're calling this method on is not a child of the UIViewController class. For example, if I inherit my class from NSObject and call presentViewController:animated:completion on it, that error springs up (because my class doesn't know that method, unless I define it myself, or unless the parent class has defined it). It's possible that you're calling the method on self, and self isn't a view controller.

Ali on How to share things with a UIActivityViewController

Wednesday, 1st August 2018

I got the error:- No visible @interface for 'XXXX' declares the selector 'presentViewController:animated:completion:'

Jay Versluis on How to control the Preview Screenshot in the iOS Multitasking Switcher

Friday, 27th July 2018

Hi Raidel, what you're describing is not an issue, it's expected behaviour. Double-tapping the home button brings up the "frozen" background apps, all showing a screenshot (not the live app). Double-tapping again, without selecting anything else, brings the current app back into the foreground. This activates it again, removing the screenshot.

Raidel Torres on How to control the Preview Screenshot in the iOS Multitasking Switcher

Thursday, 26th July 2018

Hi guys, I have trying to do this for a long time and no luck so far. I mean all options work, but there is a case in which they are not working. Example with the first one, simply hiding and showing the window, if I double touch the home button that will work fine, but if I double touch a couple more times I will end getting the screen of the app

Jay Versluis on How to check for Network Connectivity in iOS

Sunday, 8th July 2018

I couldn't agree more, Luke. Tony Million wrote that the he had reports that Apple is starting to reject apps that contain the Reachability class. Iv'e not made this experience myself, but should this happen to anyone, simply rename the class. Perhaps Apple are thinking about releasing their own version of it sometime? It's only been... 11 years and counting.

Jay Versluis on How to fetch multiple Entities with an NSFetchedResultsController

Sunday, 8th July 2018

Good question, Shirish, I've never tried that. I would assume it works.

Shirish on How to fetch multiple Entities with an NSFetchedResultsController

Wednesday, 27th June 2018

What if the Inbound and Outbound entity already have some other different Parent entities. Can we fetch them both together in that case ?

Luke on How to check for Network Connectivity in iOS

Friday, 22nd June 2018

Thanks so much.. Why isn't Reachability built into the core? A simple "isConnected" function would do instead of all this imported 'time consuming' extra. A connection to the net is practically required these days.

Đô Trịnh on How to avoid “whose view is not in the window hierarchy” error when presenting a UIViewController

Friday, 8th June 2018

Like a charm it goes well. Thank for your time.

keith on How to fix “no rule to process file” warning in Xcode

Wednesday, 18th April 2018

thank you!

Jay Versluis on How to concatenate strings (i.e. print several at a time)

Saturday, 24th March 2018

Alternatively, we can format a string with another string, like this:

NSString *combined = [NSString stringWithFormat@"%@%@", stringOne, stringTwo];

kunal kishore on How to kill your app when it enters background mode

Wednesday, 21st March 2018

Excellent article!! one more info which I am looking for is, whether the iOS app can be killed on pause programatically, i.e based on app's condition (like what it is doing at the moment). Can this be done?

Fhd on How to use Swift classes in Objective-C

Tuesday, 20th March 2018

Nice tutorial but this not working with xcode 9.2

Vikko on How to add touch events to a UITableViewFooter (or header)

Tuesday, 13th March 2018

Thank you for this

Kevin on How to create Popovers in iOS 9

Thursday, 1st February 2018

it does not work, the two buttons always open the controller in full screen

Jay Versluis on How to build a UICollectionView in iOS 8

Saturday, 27th January 2018

Thank you, Mark :-)

mark on How to build a UICollectionView in iOS 8

Tuesday, 16th January 2018

This was one of the best tutorials I have seen - very clear and patient instructor!

Jay Versluis on How to read Command Line Input on macOS

Sunday, 31st December 2017

Not to my knowledge, Ali. Perhaps there's a way to create a template or some such. Xcode changes too quickly for me to keep up these days.

Jay Versluis on How to use Version Control since Xcode 9

Sunday, 31st December 2017

:-) That's indeed what I mean (frigging auto correction is driving me bananas here...). Thanks, Indi!

Indi Kernick on How to use Version Control since Xcode 9

Saturday, 16th December 2017

"Note that any changes we’ve made are not autistically committed to the new branch until we manually commit" I think you mean "automatically".

Pedro Viana on How to avoid WAL files in Core Data

Friday, 15th December 2017

Thanks!

Ali on How to read Command Line Input on macOS

Tuesday, 28th November 2017

Thank you so much, it was so helpful But is there any way to save this changes as a default?

ansh on Xcode crashes every time you open it – and how to fix it

Tuesday, 21st November 2017

worked for me :)

Laura Weaver on Xcode crashes every time you open it – and how to fix it

Monday, 13th November 2017

For those who are still struggling: Add a possible restart to your steps. After trying the above multiple times, adding the restart after made the difference.

HappyMan on How to share things with a UIActivityViewController

Wednesday, 8th November 2017

Thank you for the article, let me complete the sharing feature quickly :D

Jay Versluis on How to change the header in an NSTableView

Sunday, 5th November 2017

Great, thanks for sharing.

Vitauct on How to change the header in an NSTableView

Friday, 3rd November 2017

At my end it worked with 'setNeedsDisplay' instead of 'setNeedsLayout' which makes more sense to me.

Jay Versluis on How to share things with a UIActivityViewController

Saturday, 9th September 2017

Hi Tux, I did some investigating, and the demo code runs fine as is on my iOS 9 device, sharing an image to the camera roll without a hitch. On iOS 10 however, I got a crash with the following explanation:

This app has crashed because it attempted to access privacy-sensitive data without a usage description. The app's Info.plist must contain an NSPhotoLibraryUsageDescription key with a string value explaining to the user how the app uses this data.
After fixing that, it shared the image as it should. I've explained how to add this key here: http://pinkstone.co.uk/what-is-the-nsphotolibraryusagedescription-key/. I've also updated my Demo Project to include this key now, it should work fine with iOS 10 now.