Permalink
Browse files

Gifting fix

  • Loading branch information...
1 parent ca75361 commit ffe408f3ceba5e5c223eb748bb0f46898c8eb721 Tomi Joki-Korpela committed Mar 5, 2012
Showing with 5 additions and 3 deletions.
  1. +1 −0 FacebookDevStory/AppDelegate.h
  2. +4 −3 FacebookDevStory/AppDelegate.m
@@ -20,6 +20,7 @@
id whoamiRequest;
int64_t fbid;
UIButton *requestDialogButton;
+ UIButton *feedDialogButton;
}
@property (strong, nonatomic) UIWindow *window;
@@ -58,15 +58,16 @@ - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(
[requestDialogButton setHidden:YES];
// Add the feed dialog button
- UIButton *feedDialogButton = [UIButton
+ feedDialogButton = [UIButton
buttonWithType:UIButtonTypeRoundedRect];
feedDialogButton.frame = CGRectMake(40, 260, 200, 40);
[feedDialogButton setTitle:@"Publish Feed" forState:UIControlStateNormal];
[feedDialogButton addTarget:self
action:@selector(feedDialogButtonClicked)
forControlEvents:UIControlEventTouchUpInside];
[self.viewController.view addSubview:feedDialogButton];
-
+ [feedDialogButton setHidden:YES];
+
// Add the logout button
/*
UIButton *logoutButton = [UIButton
@@ -238,7 +239,7 @@ - (void)request:(FBRequest *)request didLoad:(id)result {
NSString *senderID = [[requestObject objectForKey:@"from"] objectForKey:@"id"];
NSString *recipientID = [[requestObject objectForKey:@"to"] objectForKey:@"id"];
NSLog(@"request id:%@ sender:%@ recipient:%@", requestID, senderID, recipientID);
- int itemType = [recipientID longLongValue]%3;
+ int itemType = [senderID longLongValue]%3;
[self setItems: itemType value:[self numItems: itemType] + 1];
// Delete request

0 comments on commit ffe408f

Please sign in to comment.