Hi all,
Three days ago this code worked...:(
The label will not update to show the loaded facebook username.
//Interface .h
IBOutlet UILabel *namefb;
...
@property(nonatomic, retain)UILabel *namefb;
//Implementation .m
- (void)request:(FBRequest*)request didLoad:(id)result {
NSArray* users = result;
NSDictionary* user = [users objectAtIndex:0];
NSString* name = [user objectForKey:@"name"];
namefb.text=[NSString stringWithFormat:@"Log-in: %@", name];//not update
}
(I have also connected the label in IB and imported all fbconnect delegates )
When I run it in debug, the variable name is right, but namefb.text does not get updated..
Any ideas?
sorry for my english..:)