Workaround for bug in [NSMutableIndexSet shiftIndexesStartingAtIndex:by:]
The Bug Shifting an NSMutableIndexSet by a negative number will drop an index in some cases. Example Code: NSMutableIndexSet *set = [NSMutableIndexSet indexSetWithIndex:0]; [set addIndex:2]; [set...
View ArticleHow to Set The Image Name When Saving to The Camera Roll
In principle, you can’t. But in practice, there is a way… Read on to find out. iOS names the image IMG_<num> to avoid file name clashes. There is no way to change that from your app. However, if...
View ArticlelayoutSubviews Considered Reentrant
I had the weirdest bug the other day: rotating the iPhone worked fine in iOS 7, but not in iOS 8. Actually it was weirder: Some UIView instances adjusted themselves perfectly after the rotation, but...
View Article
More Pages to Explore .....