Skip to content

Instantly share code, notes, and snippets.

@prendio2
prendio2 / castro-2.5.1-bug-fixes.md
Created October 27, 2017 23:23
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
prendio2 / c2-trailer-embed.html
Last active May 18, 2018 17:31
HTML to embed Castro 2 trailer on your site
<video width="375" height="667" controls>
<source src="http://cdn.supertop.co/castro/assets/app-preview.mp4" type="video/mp4">
</video>
@prendio2
prendio2 / SUPTableViewController.m
Created March 26, 2014 15:05
Custom viewWillApear to restore selected row when transition is cancelled
- (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];
+ (void)initialize
{
//Unselected Background
[[UISegmentedControl appearance] setBackgroundImage:[UIImage imageNamed:@"UISegmentedControlBackgroundUnselected"]
forState:UIControlStateNormal
barMetrics:UIBarMetricsDefault];
//Selected Background
[[UISegmentedControl appearance] setBackgroundImage:[UIImage imageNamed:@"UISegmentedControlBackgroundSelected"]
forState:UIControlStateSelected
@prendio2
prendio2 / tokens_demo.html
Created November 18, 2012 21:58
HTML to embed Tokens demo video on your site
<iframe src="http://player.vimeo.com/video/53633142?title=0&amp;byline=0&amp;portrait=0" frameborder="0" webkitAllowFullScreen mozallowfullscreen allowFullScreen></iframe>