如何解决[NSPlaceholderString initWithValidatedFormat:validFormatSpecifiers:locale:arguments:error
更新项目 xCode 11 到 12 后应用程序崩溃,同时使用 uitapgesture 点击 Uiview 它在 xcode 11 中工作正常,但在 xcode 12 中无效,请任何人查看它 这是代码片段:
UIView *viewForCell = [[UIView alloc]initWithFrame:CGRectMake(xOffset,5,140,170)];
viewForCell.backgroundColor=[UIColor blackColor];
viewForCell.autoresizingMask = UIViewAutoresizingFlexibleWidth;
viewForCell.userInteractionEnabled = YES;
viewForCell.tag = indexPath.row*100 + i;
UITapGestureRecognizer *tapRecognizer = [[UITapGestureRecognizer alloc] initWithTarget:self action:@selector(horizanalPhotoItemTapped:)];
[viewForCell addGestureRecognizer:tapRecognizer];
-(void)horizanalPhotoItemTapped:
(UITapGestureRecognizer*)sender//Photo
{
long selectedRowItem = sender.view.tag;
long selectedRow = selectedRowItem/100;
long selectedItem = selectedRowItem%100;
// NSArray *arrNewsItems = [dictSelCategory valueForKey:@"items"];
NSDictionary *dictTappedRowItems = [arrNewsItemsOfTheSection objectAtIndex:selectedRow];
NSArray *arrHorizandalNewsItems = [dictTappedRowItems valueForKey:@"photoitems"];
NSDictionary *dictselectednews = [arrHorizandalNewsItems objectAtIndex:selectedItem];
dictSelVideo = dictselectednews;
strPhotoBackBtnTitle = [dictThisCategoryNews valueForKey:@"title"];
WebServices *webService = [[WebServices alloc] init];
webService.delegate=self;
webService.tag=TAG_HOMEPHOTOALBUM_REQ;
[webService getDataFromURL:[dictselectednews valueForKey:@"albumurl"]];
}
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。