質問が尋ねたように、プロパティのトラフを for ループの int に変更する可能性があるかどうかを知りたいです。
例:
controller.h:
@property (weak, nonatomic) IBOutlet UILabel *lblTeamName1;
@property (weak, nonatomic) IBOutlet UILabel *lblTeamName2;
@property (weak, nonatomic) IBOutlet UILabel *lblTeamName3;
コントローラー.m
@synthesize property lblTeamName1;
@synthesize property lblTeamName2;
@synthesize property lblTeamName3;
for(int i = 0;i <= 3;i++)
{
lblTeamName(i).text = @"something";
}
私が求めているのは、これが機能する方法です。これが機能するかどうか、またはこれができないかどうかはわかりません。