APIがないと仮定すると、LIKEボタンをどのように実装しますか?
たとえば。ビューにボタンを設定しました
UIButton *likeButton = [UIButton buttonWithType:UIButtonTypeCustom];
[likeButton setTitle:@"Like" forState:UIControlStateNormal];
[likeButton setTitleColor:[UIColor blackColor] forState:UIControlStateNormal];
likeButton.frame=CGRectMake(10, 10, 100,30);
いいねボタンを検出するためのセレクター付き
[likeButton addTarget:self action:@selector(likeButtonPressedAction:) forControlEvents:UIControlEventTouchUpInside];
USERをlikeButtonPressedActionセレクターに渡して、LIKEが押されたユーザーを知ることはできますか?つまり、LIKEボタンが押されたかどうかは検出できますが、そのLIKEが誰に属しているかを検出する方法がわかりません。