Skip to content

Instantly share code, notes, and snippets.


Block or report user

Report or block prendio2

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
prendio2 /
Created Oct 27, 2017
Bug Fixes in Castro 2.5.1
  • Castro resumes properly after turn by turn directions.
  • Restoring from an iCloud backup will no longer incorrectly show episodes as downloaded.
  • When resuming a previously played episode through continuous play, Castro will no longer resume from the wrong position.
  • "Hey Siri, skip forward 5 minutes!" now works correctly.
  • There was a crash that could happen in the background that has been fixed.
prendio2 / c2-trailer-embed.html
Last active May 18, 2018
HTML to embed Castro 2 trailer on your site
View c2-trailer-embed.html
<video width="375" height="667" controls>
<source src="" type="video/mp4">
prendio2 / SUPTableViewController.m
Created Mar 26, 2014
Custom viewWillApear to restore selected row when transition is cancelled
View SUPTableViewController.m
- (void)viewWillAppear:(BOOL)animated
[super viewWillAppear:animated];
NSIndexPath *selectedRowIndexPath = [self.tableView indexPathForSelectedRow];
if (selectedRowIndexPath) {
[self.tableView deselectRowAtIndexPath:selectedRowIndexPath animated:YES];
[[self transitionCoordinator] notifyWhenInteractionEndsUsingBlock:^(id<UIViewControllerTransitionCoordinatorContext> context) {
if ([context isCancelled]) {
[self.tableView selectRowAtIndexPath:selectedRowIndexPath animated:NO scrollPosition:UITableViewScrollPositionNone];
View gist:6424749
+ (void)initialize
//Unselected Background
[[UISegmentedControl appearance] setBackgroundImage:[UIImage imageNamed:@"UISegmentedControlBackgroundUnselected"]
//Selected Background
[[UISegmentedControl appearance] setBackgroundImage:[UIImage imageNamed:@"UISegmentedControlBackgroundSelected"]
prendio2 / tokens_demo.html
Created Nov 18, 2012
HTML to embed Tokens demo video on your site
View tokens_demo.html
<iframe src=";byline=0&amp;portrait=0" frameborder="0" webkitAllowFullScreen mozallowfullscreen allowFullScreen></iframe>
You can’t perform that action at this time.