I'm working with Parse.com ... My app relies heavily on relations between users and to use this thing PFRelation that creates a relationship between the User and the User corrent selected ...
Whenever the Current User chooses User " A" creates the relationship with PFRelation and User "A" receives a push notification where it is informed that the current user has started to follow him.
Now I have created through a label , even the badge number that should appear not to CurrentUser but the USER "A" that receives the notification . The badge I'm talking about is NOT the classic Icon badge but it is a badge that appears on NavigationBar .
To do all this I should try to save an entry in the special class _USER CurrentUser but not to the USER "A" .. Could you tell me how could I do? I already have an array fetches the names of users and displays them in tablebiew .
For example, to create the relationship with the user selected on the Tableview I implemented a PFUser connected with the array
- (void) tableView : ( UITableView * ) tableView didSelectRowAtIndexPath : ( NSIndexPath * ) indexPath {
[ self.TableView deselectRowAtIndexPath : indexPath animated : NO] ;
if (! isFiltered ) {
UITableViewCell * cell = [ self.TableView cellForRowAtIndexPath : indexPath ] ;
cell.accessoryType = UITableViewCellAccessoryCheckmark ;
PFUser * user = [ self.Utenti objectAtIndex : indexPath.row ] ;
PFRelation * Report = [ [ PFUser currentUser ] relationforKey : @ "Relationship "] ;
PFInstallation currentInstallation * = [ PFInstallation currentInstallation ] ;
NSString * RegistraNomeUtente = [ NSString stringWithFormat : @ "% @ " , [user objectForKey : FF_USER_NOMECOGNOME ]] ;
.....
from_user&to_userentities. So that you can query specific user how follow current user or count total users who is following the current one.