Tag: ios7

应用程序:didReceiveRemoteNotification:fetchCompletionHandler不调用

它出现了函数application:didReceiveRemoteNotification:fetchCompletionHandler在应用程序强制退出时不被调用。 我的印象是,无论应用程序处于什么状态,函数都会被调用,但只有当应用程序已经在后台运行时才会调用该函数。 如果还没有使用新的iOS 7远程通知背景模式运行,有没有办法在后台唤醒应用程序?

iOS 7的UIWebView键盘问题

我不得不删除这个栏作为这里链接,但对于iOS 7这个代码不起作用。

如何在我的“第三方服务器”上validationGKLocalPlayer?

iOS7引入了新的GKLocalPlayer方法generateIdentityVerificationSignatureWithCompletionHandler() 。 有谁知道如何使用它的好? 我想在苹果服务器端会有一些公共的API ..

如何在UIImagepickercontroller中隐藏状态栏?

我是iOS开发新手。 我想隐藏状态栏在UIImagePickerController 。 每当我点击“拍照”,就会出现状态栏。 它不隐藏。 我只想在UIImagePickerController隐藏状态栏。 这是我的代码, – (IBAction)takePhoto:(UIButton *)sender { UIImagePickerController *picker = [[UIImagePickerController alloc] init]; picker.delegate = self; picker.allowsEditing = YES; picker.sourceType = UIImagePickerControllerSourceTypeCamera; [self presentViewController:picker animated:YES completion:NULL]; } – (void)imagePickerController:(UIImagePickerController *)picker didFinishPickingMediaWithInfo:(NSDictionary *)info { [self statusBar:YES]; UIImage *chosenImage = info[UIImagePickerControllerEditedImage]; self.imageView.image = chosenImage; [picker dismissViewControllerAnimated:YES completion:NULL]; } – (void)imagePickerControllerDidCancel:(UIImagePickerController *)picker { [picker […]

自ios7以来,indexPathForCell返回nil

我的应用程序在ios6.1下运行良好。 尝试过ios7模拟器,下面的部分不起作用: EditingCell *cell = (EditingCell*) [[textField superview] superview]; NSIndexPath *indexPath = [self.tableView indexPathForCell:cell]; NSLog(@"the section is %d and row is %d", indexPath.section, indexPath.row); NSUInteger section = [indexPath section]; NSUInteger row = [indexPath row]; NSString *rowKey = [[keysForRows objectAtIndex: section] objectAtIndex: row]; 它总是: the section is 0 and row is 0 尽pipeselect了另一个部分/行。 有人有一个想法,为什么这不工作在ios7下?

是否有可能通过编程禁用iOS 7中的控制中心,如果没有,有什么替代scheme?

我开发了一个应用程序,从下到上使用滑动手势。 它在iOS 6中运行得非常好,但是现在iOS 7已经出来了,它的工作原理可能是25次中的1次:我几乎每次都能得到iOS 7控制中心。 显然,控制中心可以在设置中被禁用,但这是由电话的所有者,我无法控制。 所以我的问题是,有没有办法禁用控制中心的时候,当我的应用程序正在运行(或更有可能,是“积极”,因为我想控制中心回来,如果用户不积极使用我的应用程序)。 如果不是,还有什么select? 重新定位/重构function是唯一的解决scheme吗?

在applicationDidEnterBackground之前显示一个视图或启animation面(避免活动视图截图)

我的应用程序中有机密信息,因此当应用程序即将移至背景时,我想用启animation面将其隐藏起来。 我确实在iOS6上运行应用程序。 我试图在applicationWillResignActive显示视图,但问题是它甚至在用户滑动控制面板时显示启animation面。 我只希望它显示只有当应用程序被移动到后台。 我试图在applicationDidEnterBackground显示我的splashScreen,但是它在animation之前在恢复时显示信息。 在这里,我想要的精神: – (void)applicationDidEnterBackground:(UIApplication *)application { [_window addSubview:__splashController.view]; }

自动调整ScrollViewInsets不起作用

我创build了一个非常简单的演示应用程序来testingautomaticallyAdjustsScrollViewInsets的function,但是tableView的最后一个单元格被我的标签栏覆盖。 我的AppDelegate代码: UITabBarController *tabControl = [[UITabBarController alloc] init]; tabControl.tabBar.translucent = YES; testViewController *test = [[testViewController alloc] init]; [tabControl setViewControllers:@[test]]; [self.window setRootViewController:tabControl]; 我的testViewController(UITableViewController的子类)代码: – (void)viewDidLoad { [super viewDidLoad]; self.automaticallyAdjustsScrollViewInsets = YES; self.tableView = [[UITableView alloc] initWithFrame:self.view.bounds]; self.tableView.dataSource = self; self.tableView.scrollIndicatorInsets = self.tableView.contentInset; //[self.view addSubview:self.tableView]; // Do any additional setup after loading the view. } – (NSInteger)tableView:(UITableView […]

在ios7中自动更新订阅

我知道这已经被问了很多次了,但是没有一个问题对我有帮助,我不确定哪些答案在iOS 7中仍然有效。 我正在做一些与自动更新订阅的应用程序。 我已经成功创build了我的产品,可以和testing用户一起购买。 我的问题是:什么是正确的方法来检查一个特定的用户是否仍然可以访问此产品? 以及如何testing自动更新是否运行良好? (因为我读了沙盒自动更新不作为真正的iStore工作)。 最后一个问题是:苹果是否拒绝了很多ARS应用呢? 马尔科

在iOS7半透明导航栏中获取正确的颜色

如何才能在iOS 7中为我的半透明导航栏添加正确的颜色? 导航栏只是将给定的颜色调整得更亮一些。 改变颜色的亮度或饱和度也不能提供正确的结果。 任何人都有同样的麻烦? 看起来似乎在某种程度上工作,看着Facebook:他们有他们的颜色和半透明的导航栏。 编辑:只是为了说清楚:我需要酒吧是半透明的,不透明(有一些阿尔法),而不是固体! http://en.wikipedia.org/wiki/Transparency_and_translucency 编辑:现在发布到Apple BugReporter