小编Ash*_*raf的帖子

适用于iPad/iPhone的自定义弹出窗口

在iBooks应用程序中,亮度,字体和搜索视图是UIPopOverController的子类,但没有边框.有没有办法模仿这些观点?

iphone ipad uipopovercontroller

11
推荐指数
1
解决办法
6606
查看次数

核心数据NSPredicate与SQLITE商店

此代码返回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数据(阿拉伯语).

任何帮助表示赞赏.

iphone core-data nspredicate nsfetchrequest

3
推荐指数
1
解决办法
1274
查看次数

UIPopoverController通过UITableViewCell

我想以编程方式在表视图中选择一行,然后显示我的弹出框,让箭头指向单元格.

当表没有滚动时,此代码工作正常,对于滚动表视图,弹出箭头定位不正确.

[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)

谢谢你的帮助

iphone uitableview ipad uipopovercontroller ios

3
推荐指数
2
解决办法
4688
查看次数