且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

在Parse iOS中链接用户ID和安装ID

更新时间:2023-12-03 13:46:28

// Associate the device with a user
PFInstallation *installation = [PFInstallation currentInstallation];
installation[@"user"] = [PFUser currentUser];
[installation saveInBackground];

这会将用户置于Installation表的"user"列中,该列将是指向_User表的指针.

This will put the user in a column "user" in the Installation table, the column would be a pointer to the _User table.