2012-07-01 18:26:39 -07:00
|
|
|
//
|
|
|
|
// UserProfileViewController.m
|
|
|
|
// NewsBlur
|
|
|
|
//
|
|
|
|
// Created by Roy Yang on 7/1/12.
|
|
|
|
// Copyright (c) 2012 NewsBlur. All rights reserved.
|
|
|
|
//
|
|
|
|
|
|
|
|
#import "UserProfileViewController.h"
|
|
|
|
#import "NewsBlurAppDelegate.h"
|
2012-07-09 21:13:06 -07:00
|
|
|
#import "ProfileBadge.h"
|
2012-07-21 18:25:56 -07:00
|
|
|
#import "SmallActivityCell.h"
|
2012-08-10 18:10:07 -07:00
|
|
|
#import "FollowGrid.h"
|
2012-07-13 16:02:21 -07:00
|
|
|
#import "ASIHTTPRequest.h"
|
2012-07-01 18:26:39 -07:00
|
|
|
#import "Utilities.h"
|
2012-07-03 17:54:36 -07:00
|
|
|
#import "MBProgressHUD.h"
|
2012-07-13 14:21:55 -07:00
|
|
|
#import <QuartzCore/QuartzCore.h>
|
2012-07-01 18:26:39 -07:00
|
|
|
|
|
|
|
@implementation UserProfileViewController
|
|
|
|
|
|
|
|
@synthesize appDelegate;
|
2012-07-09 21:13:06 -07:00
|
|
|
@synthesize profileBadge;
|
2012-07-13 14:21:55 -07:00
|
|
|
@synthesize profileTable;
|
2012-07-13 16:02:21 -07:00
|
|
|
@synthesize activitiesArray;
|
|
|
|
@synthesize activitiesUsername;
|
2012-07-28 23:31:12 -07:00
|
|
|
@synthesize userProfile;
|
2013-09-26 19:26:10 -07:00
|
|
|
@synthesize request;
|
2012-07-28 23:31:12 -07:00
|
|
|
|
2012-07-01 18:26:39 -07:00
|
|
|
|
2012-08-02 18:00:48 -07:00
|
|
|
- (id)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil {
|
2012-07-01 18:26:39 -07:00
|
|
|
self = [super initWithNibName:nibNameOrNil bundle:nibBundleOrNil];
|
|
|
|
if (self) {
|
|
|
|
// Custom initialization
|
|
|
|
}
|
|
|
|
return self;
|
|
|
|
}
|
|
|
|
|
2013-09-26 19:26:10 -07:00
|
|
|
- (void)dealloc {
|
|
|
|
self.profileTable.dataSource = nil;
|
|
|
|
self.profileTable.delegate = nil;
|
|
|
|
request.delegate = nil;
|
|
|
|
[request cancel];
|
|
|
|
}
|
2012-07-09 22:10:55 -07:00
|
|
|
|
2012-08-02 18:00:48 -07:00
|
|
|
- (void)viewDidLoad {
|
2012-07-01 18:26:39 -07:00
|
|
|
[super viewDidLoad];
|
|
|
|
// Do any additional setup after loading the view from its nib.
|
2012-07-25 17:29:29 -07:00
|
|
|
self.appDelegate = (NewsBlurAppDelegate *)[[UIApplication sharedApplication] delegate];
|
2012-07-31 00:53:16 -07:00
|
|
|
|
2012-07-27 13:21:42 -07:00
|
|
|
self.view.backgroundColor = UIColorFromRGB(0xd7dadf);
|
|
|
|
|
|
|
|
UITableView *profiles = [[UITableView alloc] initWithFrame:CGRectMake(0, 0, self.view.frame.size.width, self.view.frame.size.height) style:UITableViewStyleGrouped];
|
|
|
|
self.profileTable = profiles;
|
|
|
|
self.profileTable.dataSource = self;
|
|
|
|
self.profileTable.delegate = self;
|
|
|
|
self.profileTable.autoresizingMask = UIViewAutoresizingFlexibleWidth | UIViewAutoresizingFlexibleHeight;
|
|
|
|
|
2014-09-22 11:44:29 -07:00
|
|
|
// self.view.autoresizingMask = UIViewAutoresizingFlexibleWidth | UIViewAutoresizingFlexibleHeight;
|
2012-07-27 13:21:42 -07:00
|
|
|
ProfileBadge *badge = [[ProfileBadge alloc] init];
|
|
|
|
self.profileBadge = badge;
|
2012-07-12 00:10:42 -07:00
|
|
|
}
|
|
|
|
|
2012-08-02 18:00:48 -07:00
|
|
|
- (void)viewDidUnload {
|
2012-07-12 00:10:42 -07:00
|
|
|
[super viewDidUnload];
|
|
|
|
// Release any retained subviews of the main view.
|
2012-08-02 18:00:48 -07:00
|
|
|
self.appDelegate = nil;
|
|
|
|
self.profileBadge = nil;
|
|
|
|
self.profileTable = nil;
|
|
|
|
self.activitiesArray = nil;
|
|
|
|
self.activitiesUsername = nil;
|
|
|
|
self.userProfile = nil;
|
2012-07-12 00:10:42 -07:00
|
|
|
}
|
|
|
|
|
2012-07-28 14:56:40 -07:00
|
|
|
- (void)viewWillAppear:(BOOL)animated {
|
2012-07-31 00:53:16 -07:00
|
|
|
[super viewWillAppear:animated];
|
|
|
|
CGRect vb = self.view.bounds;
|
2013-09-25 17:43:00 -07:00
|
|
|
self.preferredContentSize = self.view.frame.size;
|
2012-07-31 00:53:16 -07:00
|
|
|
self.view.frame = vb;
|
|
|
|
self.profileTable.frame = vb;
|
|
|
|
self.profileBadge.frame = CGRectMake(0, 0, vb.size.width, 140);
|
2012-07-28 14:56:40 -07:00
|
|
|
}
|
|
|
|
|
2012-07-28 14:15:20 -07:00
|
|
|
- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation {
|
2012-07-01 18:26:39 -07:00
|
|
|
return YES;
|
|
|
|
}
|
|
|
|
|
2012-08-02 00:57:01 -07:00
|
|
|
- (void)didRotateFromInterfaceOrientation:(UIInterfaceOrientation)fromInterfaceOrientation {
|
|
|
|
[self.profileTable reloadData];
|
|
|
|
}
|
|
|
|
|
2012-07-01 21:58:55 -07:00
|
|
|
- (void)doCancelButton {
|
2013-06-17 11:50:13 -07:00
|
|
|
[appDelegate.modalNavigationController dismissViewControllerAnimated:NO completion:nil];
|
2012-07-01 21:58:55 -07:00
|
|
|
}
|
|
|
|
|
2012-07-01 18:26:39 -07:00
|
|
|
- (void)getUserProfile {
|
2014-09-22 11:44:29 -07:00
|
|
|
// self.view.frame = self.view.bounds;
|
|
|
|
self.preferredContentSize = CGSizeMake(320, 454);
|
2012-07-31 23:49:51 -07:00
|
|
|
|
2012-07-12 22:05:23 -07:00
|
|
|
self.appDelegate = (NewsBlurAppDelegate *)[[UIApplication sharedApplication] delegate];
|
2012-07-03 17:54:36 -07:00
|
|
|
[MBProgressHUD hideHUDForView:self.view animated:YES];
|
|
|
|
MBProgressHUD *HUD = [MBProgressHUD showHUDAddedTo:self.view animated:YES];
|
2012-07-11 18:08:07 -07:00
|
|
|
HUD.labelText = @"Profiling...";
|
2012-07-09 21:13:06 -07:00
|
|
|
[self.profileBadge initProfile];
|
2012-08-13 22:48:50 -07:00
|
|
|
NSString *urlString = [NSString stringWithFormat:@
|
2013-06-18 21:23:20 -04:00
|
|
|
"%@/social/profile?user_id=%@"
|
2012-08-13 22:53:00 -07:00
|
|
|
"&category=follow&category=comment_reply&category=comment_like&category=sharedstory",
|
2012-07-01 18:26:39 -07:00
|
|
|
NEWSBLUR_URL,
|
2012-07-03 17:54:36 -07:00
|
|
|
appDelegate.activeUserProfileId];
|
2012-07-01 18:26:39 -07:00
|
|
|
NSURL *url = [NSURL URLWithString:urlString];
|
|
|
|
|
2013-09-26 19:26:10 -07:00
|
|
|
request = [ASIHTTPRequest requestWithURL:url];
|
2012-08-13 22:53:00 -07:00
|
|
|
|
2012-07-01 18:26:39 -07:00
|
|
|
[request setDelegate:self];
|
|
|
|
[request setDidFinishSelector:@selector(requestFinished:)];
|
|
|
|
[request setDidFailSelector:@selector(requestFailed:)];
|
|
|
|
[request startAsynchronous];
|
|
|
|
}
|
|
|
|
|
2013-09-30 12:13:10 -07:00
|
|
|
- (void)requestFinished:(ASIHTTPRequest *)_request {
|
2012-07-01 18:26:39 -07:00
|
|
|
[MBProgressHUD hideHUDForView:self.view animated:YES];
|
2013-09-30 12:13:10 -07:00
|
|
|
NSString *responseString = [_request responseString];
|
2012-07-27 16:21:44 -07:00
|
|
|
NSData *responseData=[responseString dataUsingEncoding:NSUTF8StringEncoding];
|
|
|
|
NSError *error;
|
|
|
|
NSDictionary *results = [NSJSONSerialization
|
|
|
|
JSONObjectWithData:responseData
|
|
|
|
options:kNilOptions
|
|
|
|
error:&error];
|
2012-07-12 22:05:23 -07:00
|
|
|
|
2012-07-01 18:26:39 -07:00
|
|
|
// int statusCode = [request responseStatusCode];
|
|
|
|
int code = [[results valueForKey:@"code"] intValue];
|
|
|
|
if (code == -1) {
|
|
|
|
NSLog(@"ERROR");
|
|
|
|
return;
|
|
|
|
}
|
2012-07-09 22:10:55 -07:00
|
|
|
|
2012-07-03 17:54:36 -07:00
|
|
|
[MBProgressHUD hideHUDForView:self.view animated:YES];
|
2012-07-12 00:10:42 -07:00
|
|
|
|
2012-07-28 23:31:12 -07:00
|
|
|
self.userProfile = [results objectForKey:@"user_profile"];
|
2012-07-28 23:43:50 -07:00
|
|
|
|
2013-03-04 20:21:29 -08:00
|
|
|
NSString *currentUserId = [NSString stringWithFormat:@"%@", [self.appDelegate.dictSocialProfile objectForKey:@"user_id"]];
|
2012-07-28 23:43:50 -07:00
|
|
|
NSString *profileUserId = [NSString stringWithFormat:@"%@", [self.userProfile objectForKey:@"user_id"]];
|
|
|
|
|
|
|
|
// check follow button status
|
|
|
|
if ([currentUserId isEqualToString:profileUserId]) {
|
|
|
|
NSMutableDictionary *newUserProfile = [self.userProfile mutableCopy];
|
2012-08-09 10:18:15 -07:00
|
|
|
[newUserProfile setValue:[NSNumber numberWithInt:1] forKey:@"yourself"];
|
2012-07-28 23:43:50 -07:00
|
|
|
self.userProfile = newUserProfile;
|
|
|
|
}
|
|
|
|
|
2012-07-13 16:02:21 -07:00
|
|
|
self.activitiesArray = [results objectForKey:@"activities"];
|
2012-07-28 23:31:12 -07:00
|
|
|
|
2012-07-13 14:21:55 -07:00
|
|
|
[self.profileTable reloadData];
|
2012-07-13 16:02:21 -07:00
|
|
|
[self.view addSubview:self.profileTable];
|
2012-07-01 18:26:39 -07:00
|
|
|
}
|
|
|
|
|
2013-09-30 12:13:10 -07:00
|
|
|
- (void)requestFailed:(ASIHTTPRequest *)_request {
|
|
|
|
NSError *error = [_request error];
|
2012-07-01 18:26:39 -07:00
|
|
|
NSLog(@"Error: %@", error);
|
2013-03-06 14:29:40 -08:00
|
|
|
[appDelegate informError:error];
|
2012-07-01 18:26:39 -07:00
|
|
|
}
|
|
|
|
|
2012-07-13 14:21:55 -07:00
|
|
|
#pragma mark -
|
|
|
|
#pragma mark Table View - Profile Modules List
|
|
|
|
|
|
|
|
- (NSInteger)numberOfSectionsInTableView:(UITableView *)tableView {
|
2012-08-12 21:46:47 -07:00
|
|
|
return 2;
|
2012-07-13 14:21:55 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
- (NSString *)tableView:(UITableView *)tableView titleForHeaderInSection:(NSInteger)section {
|
2012-07-31 00:53:16 -07:00
|
|
|
if (section == 1 && self.activitiesArray.count) {
|
2012-07-13 14:21:55 -07:00
|
|
|
return @"Latest Activity";
|
2012-08-10 18:10:07 -07:00
|
|
|
} else if (section == 2 && self.activitiesArray.count) {
|
|
|
|
return @"Followers";
|
2012-07-13 14:21:55 -07:00
|
|
|
} else {
|
|
|
|
return nil;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
- (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section {
|
|
|
|
if (section == 0) {
|
|
|
|
return 1;
|
2012-08-10 18:10:07 -07:00
|
|
|
} else if (section == 2) {
|
|
|
|
return 1;
|
2012-07-13 14:21:55 -07:00
|
|
|
} else {
|
2012-07-13 21:31:48 -07:00
|
|
|
return [self.activitiesArray count];
|
2012-07-13 14:21:55 -07:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
- (CGFloat)tableView:(UITableView *)tableView heightForRowAtIndexPath:(NSIndexPath *)indexPath {
|
2012-07-31 00:53:16 -07:00
|
|
|
CGRect vb = self.view.bounds;
|
2012-08-01 21:40:19 -07:00
|
|
|
// you can only hardcode this due to limitation in apple API that doesn't give you width of grouped cell
|
2012-08-09 16:34:59 -07:00
|
|
|
int width = 300 - 20;
|
2012-08-07 09:57:21 -07:00
|
|
|
if (vb.size.width == 480) {
|
2012-08-09 16:34:59 -07:00
|
|
|
width = 460 - 20;
|
2012-08-07 09:57:21 -07:00
|
|
|
} else if (vb.size.width == 540) {
|
2012-08-09 16:34:59 -07:00
|
|
|
width = 478 - 20;
|
2012-08-01 21:40:19 -07:00
|
|
|
}
|
|
|
|
|
2012-08-10 18:10:07 -07:00
|
|
|
if (indexPath.section == 0 || indexPath.section == 2) {
|
2012-07-13 14:21:55 -07:00
|
|
|
return 180;
|
|
|
|
} else {
|
2012-07-21 18:25:56 -07:00
|
|
|
SmallActivityCell *activityCell = [[SmallActivityCell alloc] init];
|
|
|
|
int height = [activityCell setActivity:[self.activitiesArray objectAtIndex:(indexPath.row)]
|
2012-07-28 23:31:12 -07:00
|
|
|
withUserProfile:self.userProfile
|
2013-09-12 14:48:19 -07:00
|
|
|
withWidth:width];
|
2012-07-13 18:14:32 -07:00
|
|
|
return height;
|
2012-07-13 14:21:55 -07:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath {
|
2012-07-31 00:53:16 -07:00
|
|
|
CGRect vb = self.view.bounds;
|
|
|
|
|
2012-07-13 14:21:55 -07:00
|
|
|
if (indexPath.section == 0) {
|
2012-07-31 00:53:16 -07:00
|
|
|
ProfileBadge *cell = [tableView
|
|
|
|
dequeueReusableCellWithIdentifier:@"ProfileBadgeCellIdentifier"];
|
2012-07-21 18:25:56 -07:00
|
|
|
|
|
|
|
if (cell == nil) {
|
2012-07-31 00:53:16 -07:00
|
|
|
cell = [[ProfileBadge alloc]
|
2012-07-21 18:25:56 -07:00
|
|
|
initWithStyle:UITableViewCellStyleDefault
|
2012-07-31 00:53:16 -07:00
|
|
|
reuseIdentifier:nil];
|
|
|
|
}
|
|
|
|
|
2013-10-08 12:36:43 -07:00
|
|
|
[cell refreshWithProfile:self.userProfile showStats:YES withWidth:vb.size.width];
|
2012-07-21 18:25:56 -07:00
|
|
|
|
2012-07-13 14:21:55 -07:00
|
|
|
cell.selectionStyle = UITableViewCellSelectionStyleNone;
|
2012-07-21 18:25:56 -07:00
|
|
|
return cell;
|
2012-08-10 18:10:07 -07:00
|
|
|
} else if(indexPath.section == 1) {
|
2012-07-21 18:25:56 -07:00
|
|
|
SmallActivityCell *cell = [tableView
|
2013-02-21 17:57:32 -08:00
|
|
|
dequeueReusableCellWithIdentifier:@"ActivityCellIdentifier"];
|
2012-07-21 18:25:56 -07:00
|
|
|
if (cell == nil) {
|
|
|
|
cell = [[SmallActivityCell alloc]
|
|
|
|
initWithStyle:UITableViewCellStyleDefault
|
2012-07-31 00:53:16 -07:00
|
|
|
reuseIdentifier:@"ActivityCellIdentifier"];
|
|
|
|
}
|
2012-08-10 09:45:44 -07:00
|
|
|
cell.selectionStyle = UITableViewCellSelectionStyleGray;
|
2012-08-09 10:18:15 -07:00
|
|
|
cell.accessoryType= UITableViewCellAccessoryDisclosureIndicator;
|
2012-07-21 18:25:56 -07:00
|
|
|
[cell setActivity:[self.activitiesArray objectAtIndex:(indexPath.row)]
|
2012-07-28 23:31:12 -07:00
|
|
|
withUserProfile:self.userProfile
|
2013-10-08 12:36:43 -07:00
|
|
|
withWidth:vb.size.width];
|
2012-07-21 18:25:56 -07:00
|
|
|
|
|
|
|
return cell;
|
2012-08-10 18:10:07 -07:00
|
|
|
} else {
|
2013-02-21 17:57:32 -08:00
|
|
|
FollowGrid *cell = [tableView
|
|
|
|
dequeueReusableCellWithIdentifier:@"FollowGridCellIdentifier"];
|
2012-08-10 18:10:07 -07:00
|
|
|
if (cell == nil) {
|
|
|
|
cell = [[FollowGrid alloc]
|
|
|
|
initWithStyle:UITableViewCellStyleDefault
|
|
|
|
reuseIdentifier:@"FollowGridCellIdentifier"];
|
|
|
|
}
|
|
|
|
cell.selectionStyle = UITableViewCellSelectionStyleNone;
|
2013-10-08 12:36:43 -07:00
|
|
|
[cell refreshWithWidth:vb.size.width];
|
2012-08-10 18:10:07 -07:00
|
|
|
return cell;
|
2012-07-13 14:21:55 -07:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2012-07-16 23:48:07 -07:00
|
|
|
- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath {
|
2013-09-25 17:43:00 -07:00
|
|
|
NSInteger activitiesCount = [self.activitiesArray count];
|
2012-07-27 13:21:42 -07:00
|
|
|
|
|
|
|
// badge is not tappable
|
2012-08-10 18:10:07 -07:00
|
|
|
if (indexPath.section == 0 || indexPath.section == 2) {
|
2012-07-27 13:21:42 -07:00
|
|
|
return;
|
|
|
|
}
|
|
|
|
|
2012-07-16 23:48:07 -07:00
|
|
|
if (indexPath.row < activitiesCount) {
|
|
|
|
NSDictionary *activity = [self.activitiesArray objectAtIndex:indexPath.row];
|
|
|
|
NSString *category = [activity objectForKey:@"category"];
|
|
|
|
if ([category isEqualToString:@"follow"]) {
|
2012-07-28 14:15:20 -07:00
|
|
|
[tableView deselectRowAtIndexPath:indexPath animated:YES];
|
2012-07-29 20:55:11 -07:00
|
|
|
|
2013-02-21 17:57:32 -08:00
|
|
|
NSString *userId = [NSString stringWithFormat:@"%@",
|
|
|
|
[[activity objectForKey:@"with_user"] objectForKey:@"user_id"]];
|
2012-07-28 14:15:20 -07:00
|
|
|
appDelegate.activeUserProfileId = userId;
|
2012-07-29 20:55:11 -07:00
|
|
|
|
2013-02-21 17:57:32 -08:00
|
|
|
NSString *username = [NSString stringWithFormat:@"%@",
|
|
|
|
[[activity objectForKey:@"with_user"] objectForKey:@"username"]];
|
2012-07-28 14:15:20 -07:00
|
|
|
appDelegate.activeUserProfileName = username;
|
|
|
|
|
|
|
|
[appDelegate pushUserProfile];
|
2012-08-06 19:21:39 -07:00
|
|
|
} else if ([category isEqualToString:@"comment_reply"]) {
|
2013-02-21 17:57:32 -08:00
|
|
|
NSString *feedIdStr = [NSString stringWithFormat:@"%@",
|
|
|
|
[[activity objectForKey:@"with_user"] objectForKey:@"id"]];
|
|
|
|
NSString *contentIdStr = [NSString stringWithFormat:@"%@",
|
|
|
|
[activity objectForKey:@"content_id"]];
|
|
|
|
[appDelegate loadTryFeedDetailView:feedIdStr
|
|
|
|
withStory:contentIdStr
|
|
|
|
isSocial:YES
|
|
|
|
withUser:[activity objectForKey:@"with_user"]
|
|
|
|
showFindingStory:YES];
|
2012-08-06 19:21:39 -07:00
|
|
|
appDelegate.tryFeedCategory = category;
|
|
|
|
} else if ([category isEqualToString:@"comment_like"]) {
|
2013-02-21 17:57:32 -08:00
|
|
|
NSString *feedIdStr = [NSString stringWithFormat:@"%@",
|
|
|
|
[[activity objectForKey:@"with_user"] objectForKey:@"id"]];
|
|
|
|
NSString *contentIdStr = [NSString stringWithFormat:@"%@",
|
|
|
|
[activity objectForKey:@"content_id"]];
|
|
|
|
[appDelegate loadTryFeedDetailView:feedIdStr
|
|
|
|
withStory:contentIdStr
|
|
|
|
isSocial:YES
|
|
|
|
withUser:self.userProfile
|
|
|
|
showFindingStory:YES];
|
2012-08-01 12:41:02 -07:00
|
|
|
appDelegate.tryFeedCategory = category;
|
2012-07-29 20:55:11 -07:00
|
|
|
} else if ([category isEqualToString:@"sharedstory"]) {
|
2013-02-21 17:57:32 -08:00
|
|
|
NSString *feedIdStr = [NSString stringWithFormat:@"%@",
|
|
|
|
[self.userProfile objectForKey:@"id"]];
|
|
|
|
NSString *contentIdStr = [NSString stringWithFormat:@"%@",
|
|
|
|
[activity objectForKey:@"content_id"]];
|
|
|
|
[appDelegate loadTryFeedDetailView:feedIdStr
|
|
|
|
withStory:contentIdStr
|
|
|
|
isSocial:YES
|
|
|
|
withUser:self.userProfile
|
|
|
|
showFindingStory:YES];
|
2012-08-01 12:41:02 -07:00
|
|
|
appDelegate.tryFeedCategory = category;
|
2012-07-29 20:55:11 -07:00
|
|
|
} else if ([category isEqualToString:@"feedsub"]) {
|
2013-02-21 17:57:32 -08:00
|
|
|
NSString *feedIdStr = [NSString stringWithFormat:@"%@",
|
|
|
|
[activity objectForKey:@"feed_id"]];
|
2012-07-29 20:55:11 -07:00
|
|
|
NSString *contentIdStr = nil;
|
2013-02-21 17:57:32 -08:00
|
|
|
[appDelegate loadTryFeedDetailView:feedIdStr
|
|
|
|
withStory:contentIdStr
|
|
|
|
isSocial:NO
|
|
|
|
withUser:self.userProfile
|
|
|
|
showFindingStory:NO];
|
2012-07-16 23:48:07 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
// have the selected cell deselect
|
|
|
|
[tableView deselectRowAtIndexPath:indexPath animated:YES];
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2012-08-02 18:00:48 -07:00
|
|
|
@end
|