在iBooks应用程序中,亮度,字体和搜索视图是UIPopOverController的子类,但没有边框.有没有办法模仿这些观点?
此代码返回0个不正确的对象.但是,删除谓词时,获取请求将返回所有对象.
NSError *error = nil;
NSEntityDescription *entityDescription = [NSEntityDescription entityForName:@"Person" inManagedObjectContext:[self managedObjectContext]];
NSPredicate * pr = [NSPredicate predicateWithFormat:@"%K beginswith '%@' ",
@"FullName", searchText];
//NSPredicate * pr = [NSPredicate predicateWithFormat:@"PersonID == %@", searchText]; Works fine
NSFetchRequest *request = [[[NSFetchRequest alloc] init] autorelease];
[request setEntity:entityDescription];
[request setPredicate:pr];
NSArray * arr = [[self managedObjectContext] executeFetchRequest:request error:&error];
Run Code Online (Sandbox Code Playgroud)
FullName属性包含unicode数据(阿拉伯语).
任何帮助表示赞赏.
我想以编程方式在表视图中选择一行,然后显示我的弹出框,让箭头指向单元格.
当表没有滚动时,此代码工作正常,对于滚动表视图,弹出箭头定位不正确.
[self.EventsTableView selectRowAtIndexPath:indexPath
animated:YES
scrollPosition:UITableViewScrollPositionMiddle];
[popoverController presentPopoverFromRect:CGRectOffset(cell.frame, 0, cell.frame.size.height + self.EventsTableView.contentOffset)
inView:self.view
permittedArrowDirections:UIPopoverArrowDirectionLeft
animated:YES];
Run Code Online (Sandbox Code Playgroud)
谢谢你的帮助