Our DNA is written in Objective-C

Category Archive for ‘Bug Reports’ rss

Radar: CLGeoCoder Bug

Fun fact! Sometimes Apple engineers confuse dupes of Radars with the original ones:

Engineering has determined that your bug report (20549548) is a duplicate of another issue (20553126) and will be closed.

And that even though my radar has the zip file with the sample app attached and the alleged original only a reference to my GitHub RadarSamples repo. Oh well… as long as Apple fixes the issue, I am happy to give the win to Peter Steinberger. Fatality!

But, I have one more bug report up my sleeve! A similar issue occurs server-side when using CLGeoCoder, so I filed this as rdar://20665320 and on OpenRadar.

Again, this bug report comes with a beautiful sample app. This is the first bug report sample app I made in Swift. Only took me 4 times as long than if I made it in Objective-C, but a developer’s gotta do what a developer’s gotta do. :-)
Read more

BSA Banner

Radar: NSDataDetector Bug

This has been bugging me for quite some time, since some of my address book contacts are affected. NSDataDetector does not properly handle addresses which have more than 2 numbers with one slash.

Previously, this issue was compounded by another issue in the geocoder which would take the apartment number (instead of the street number) for determining the geographic position. To workaround this I had to add another address to some of my contacts that didn’t have the apartment number. This seems to have been fixed in iOS 8.3, but NSDataDetector is still broken.

Filed as rdar://20549548 and on Open RadarRead more

4 Radars: Percentage-driven Modal Transitions

I wanted to add a custom modal transition for the prod.ly app when you tap on a thumbnail image. I wanted to make a tutorial about that as soon as understood interactive transitions, but stumbled over a couple of bugs.

Of these one I would consider quite severe and new as of iOS 8.3, which made it a show-stopper. As long as this bug is present I cannot add an interactive percent-driven dismissal transition to my app.

Read more

Proud Day

I am walking around with a proudly swelled chest. Apple has fixed a bug I filed almost 2 years ago.

Read more

Radar: UIImageView in UIScrollView Compositing Flashing

I filed this Radar already back in December, without a sample. Now an Apple engineer requested that I provided one. So I did.

The problem is that a scrollview misaligns a content image if you pinch-to-zoom causing white lines to appear along the right and bottom edges.

Filed as rdar://19323748 and on OpenRadar.

Read more

Radar: Swipe-to-Edit on UITableView

Working on the prod.ly app (see screen shot below) I found this problem when adding actions to table view cells via the new editActionsForRowAtIndexPath: API. If you have a UIButton in the cell then the swipe does not cancel the tap on the button and you can end up accidentally executing the button action when you only wanted to edit.

Filed as rdar://19411256 and on Open Radar.

Read more

Radar: UITextField’s implementation of UITextInput protocol

For the ProductLayer SDK I have built a text field that keeps track of the last used input language. When implementing this I noticed that several of the methods that UITextField claims to be implementing are not being called. Apparently this is a new bug in iOS 8.

Filed as rdar://19263531 and on Open Radar.

Read more

Radar: Changing Metadata RectOfInterest causes pause

I found this issue when working on a barcode scanner included in an app I am working on for prod.ly. If you want to be efficient with barcode scanning and change the scanning region in the preview depending on device orientation you’ll notice this problem. Say, you want a wider active scanning area in landscape than you want in portrait.

When you change the rectOfInterest during rotation the preview video goes to black briefly and the main thread is blocked causing the rotation to start with a delay too.

Filed as rdar://18980982 and on Open Radar.

Read more

Radar: UIImagePicker returns offset cropped image

This is the kind of bug you have to see for yourself to believe it. UIImagePickerController is one of the oldest classes in iOS and we’ve been using it for just as long to let the user pick images from their photo library. You can also allow “editing” which means the user can select a square region.

Unfortunatley – at least as of iOS 8.1 – the region you select does not match with the resulting cropped image that you are provided. It is shifted down by about 10 pixels from what the user selected.

Filed as rdar://18957593 and on Open Radar.

Read more

Radar: Incorrect Horizontal Size Class

I found this bug while working on an app for our ProductLayer startup. There is a new segue “Present as Popover” which dynamically decides to present a view controller either modally full screen or as popover depending on the available screen width. On iPhone 6+ this shows as popover in landscape orientation and modally in portrait. On iPads it always shows as popover.

Filed as rdar://18893122 and on Open Radar.

Read more