Quantcast
Channel: Yonat Sharon » Workaround
Browsing all 3 articles
Browse latest View live

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 Article



Image may be NSFW.
Clik here to view.

How 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 Article

layoutSubviews 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
Browsing all 3 articles
Browse latest View live




Latest Images