Tag: 偏好

更改PopOverViewController的首选内容大小

我试图从childViewController中更改UIPopOverController的首选内容大小。 首先我以这种方式呈现PopOverViewController DateViewController *dateView = [[DatePickerViewController alloc] initWithNibName:@"DateViewController" bundle:nil]; UINavigationController *navController = [[UINavigationController alloc]initWithRootViewController:dateView]; m_tableCell = (NotesCell *)[m_tableView cellForRowAtIndexPath:indexPath]; popViewController = [[UIPopoverController alloc] initWithContentViewController:navController]; popViewController.backgroundColor = [[AppManager instance].themeManager navigationBarColor]; popViewController.delegate = self; //the rectangle here is the frame of the object that presents the popover, //in this case, the UIButton… CGRect popRect = CGRectMake(m_tableCell.customView.frame.origin.x, m_tableCell.customView.frame.origin.y, […]

打开IOS设置首选项

我有一个问题,在我的iOS iPhone应用程序打开设置偏好。 此刻我只是使用一个简单的button来testing,它似乎并没有正常工作。 基本上,当我点击button,我想打开一个特定的设置首选项页面。 这是我目前在我的buttonIBACTION中使用的内容: [[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"prefs:root=General"]]; 希望你们可以帮我解决这个问题,事先要多谢。