에있는 UIButton의 태그를 설정하는 방법은 2 차원 배열에있는 UIButton의 태그를 설정할 - 내가 잘못 곳에> 다음2 차원 배열
내 코드, 모르겠어요.
for(int i = 0 ; i<[arrWeekly_Fetch_DataForLandscapeMode count] ; i++)
{
btnLandscape_Button = [UIButton buttonWithType:UIButtonTypeCustom];
btnLandscape_Button.backgroundColor = [UIColor clearColor];
btnLandscape_Button.frame = CGRectMake(0,0,200,50);
[btnLandscape_Button.titleLabel setFont:[UIFont systemFontOfSize:14]];
btnLandscape_Button.contentHorizontalAlignment = UIControlContentHorizontalAlignmentLeft;
[arrCommonDays[1][i] addObject:[arrWeekly_Fetch_DataForLandscapeMode objectAtIndex:i]];
[btnLandscape_Button setTag:[1][arrWeekly_Fetch_DataForLandscapeMode objectAtIndex:i]];
[btnLandscape_Button addTarget:self action:@selector(btnClick_ForDetailInformation_For_Class_InLandscapeMode:) forControlEvents: UIControlEventTouchUpInside];
[btnLandscape_Button setTitleColor:[UIColor blackColor] forState:UIControlStateNormal];
[viewForDisplayData_OnDaily addSubview:btnLandscape_Button];
[btnLandscape_Button setTitle:[dictWeeklyData_InLandscape_Mode objectForKey:@"sSubjectCode"] forState:UIControlStateNormal];
}
격자보기를 만들려면 태그를 추가하고 각 버튼에 액세스 할 수 있으며 회신 해 주셔서 감사합니다. – GhostRider
을 보내 주시면 각 버튼의 이미지를 변경할 수 있습니다. 당신도 저를 도울 수 있습니까? – iGW