Skip to content

Instantly share code, notes, and snippets.

View anthonycvella's full-sized avatar

Anthony Vella anthonycvella

View GitHub Profile
//
// ServerViewController.m
// HungerCraft
//
// Created by Anthony Vella on 5/31/12.
// Copyright (c) 2012 Aurora High School. All rights reserved.
//
#import "ServerViewController.h"
#import "DetailsViewController.h"
//
// DetailsViewController.m
// HungerCraft
//
// Created by Anthony Vella on 5/31/12.
// Copyright (c) 2012 Aurora High School. All rights reserved.
//
#import "DetailsViewController.h"
//
// DetailsViewController.m
// HungerCraft
//
// Created by Anthony Vella on 5/31/12.
// Copyright (c) 2012 Aurora High School. All rights reserved.
//
#import "DetailsViewController.h"
- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath
{
[self performSegueWithIdentifier:@"ShowSelectedServers" sender:indexPath];
}
//
// ServerViewController.m
// HungerCraft
//
// Created by Anthony Vella on 5/31/12.
// Copyright (c) 2012 Aurora High School. All rights reserved.
//
#import "ServerViewController.h"
#import "DetailsViewController.h"
//
// DetailsViewController.m
// HungerCraft
//
// Created by Anthony Vella on 5/31/12.
// Copyright (c) 2012 Aurora High School. All rights reserved.
//
#import "DetailsViewController.h"
//
// DetailsViewController.h
// HungerCraft
//
// Created by Anthony Vella on 5/31/12.
// Copyright (c) 2012 Aurora High School. All rights reserved.
//
#import <UIKit/UIKit.h>
//
// DetailsViewController.m
// HungerCraft
//
// Created by Anthony Vella on 5/31/12.
// Copyright (c) 2012 Aurora High School. All rights reserved.
//
#import "DetailsViewController.h"
- (IBAction)JSONLoader:(id)sender
{
UIActivityIndicatorView *spinner = [[UIActivityIndicatorView alloc] initWithActivityIndicatorStyle:UIActivityIndicatorViewStyleGray];
[spinner startAnimating];
self.navigationItem.leftBarButtonItem = [[UIBarButtonItem alloc] initWithCustomView:spinner];
[self refreshServers];
self.navigationItem.leftBarButtonItem = sender;
- (IBAction)JSONLoader:(id)sender
{
UIActivityIndicatorView *spinner = [[UIActivityIndicatorView alloc] initWithActivityIndicatorStyle:UIActivityIndicatorViewStyleGray];
[spinner startAnimating];
self.navigationItem.leftBarButtonItem = [[UIBarButtonItem alloc] initWithCustomView:spinner];
[self refreshServers];
self.navigationItem.leftBarButtonItem = sender;