@@ -39,18 +39,18 @@ [_tableView release]; [super dealloc]; } -- (NSInteger)tableView: (UITableView*)tableView +- (NSInteger)tableView: (UITableView *)tableView numberOfRowsInSection: (NSInteger)section { return [self.siteStorage sitesCount]; } -- (UITableViewCell*)tableView: (UITableView*)tableView - cellForRowAtIndexPath: (NSIndexPath*)indexPath +- (UITableViewCell *)tableView: (UITableView *)tableView + cellForRowAtIndexPath: (NSIndexPath *)indexPath { UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier: @"site"]; if (cell == nil) @@ -61,20 +61,20 @@ cell.textLabel.text = [self.siteStorage.sites[indexPath.row] NSObject]; return cell; } -- (void)tableView: (UITableView*)tableView - didSelectRowAtIndexPath: (NSIndexPath*)indexPath +- (void)tableView: (UITableView *)tableView + didSelectRowAtIndexPath: (NSIndexPath *)indexPath { [self performSegueWithIdentifier: @"showDetails" sender: self]; } -- (void)prepareForSegue: (UIStoryboardSegue*)segue +- (void)prepareForSegue: (UIStoryboardSegue *)segue sender: (id)sender { if ([segue.identifier isEqual: @"addSite"] || [segue.identifier isEqual: @"showDetails"]) [segue.destinationViewController setMainViewController: self]; } @end