Add/Delete UITableViewCell with animation?

[self.tableView beginUpdates]; [self.tableView insertRowsAtIndexPaths:insertIndexPaths withRowAnimation:UITableViewRowAnimationFade]; [self.tableView deleteRowsAtIndexPaths:deleteIndexPaths withRowAnimation:UITableViewRowAnimationFade]; [self.tableView endUpdates]; insertIndexPaths is an array of NSIndexPaths to be inserted to your table. deleteIndexPaths is a array of NSIndexPaths to be deleted from your table. Example array format for index paths : NSArray *insertIndexPaths = [[NSArray alloc] initWithObjects: [NSIndexPath indexPathForRow:0 inSection:0], [NSIndexPath indexPathForRow:1 inSection:0], [NSIndexPath indexPathForRow:2 … Read more

UIModalTransitionStylePartialCurl with UITabBarController

I’ve scoured StackOverflow (and the Internet) for a solution to this problem. The question has been asked many times, but as you note, never sufficiently answered. Many solutions give an acceptable solution if it is unimportant whether, e.g., a lower toolbar curls up as well. Others have provided a solution using UIView animations / CoreAnimation … Read more

Custom Arabic font in iOS

Short answer This seems to be a bug in iOS. Long answer As you may know, the arabic text needs to be shaped before it can be rendered, that means converting the basic letters (Unicode:0600-06FF) to their proper corresponding contextual letters (Unicode:FE70-FEFF). iOS does this preprocessing automatically for arabic text, but for some reason, it … Read more

Accurate timing in iOS

Ok, I have some answers after doing some more tests, so I am sharing it with anyone who is interested. I’ve placed a variable to measure time intervals between ticks, inside the play method (the method that actually sends the play message to the AVAudioPlayer object), and as my simple compare-to-external-watch experiment showed, the 60 … Read more