IOS: Maintaining button state in uitableviewcell

前端 未结 3 823
天涯浪人
天涯浪人 2021-01-14 09:28

I have an iPhone app problem that\'s been bugging me for a few days and it really doesn\'t seem like it should be this difficult so I\'m sure I\'m missing something obvious.

3条回答
  •  鱼传尺愫
    2021-01-14 10:12

    This is not valid (At least not if you are trying to compare strings my contents instead of addresses):

    if (myRating == @"9")
    

    Try this:

    if ([myRating isEqualToString:@"9"])
    

    And +1 to yuji for noticing the multiple button creation.

提交回复
热议问题