我偶尔需要取消FaceBook图形请求,但是它们的API似乎没有取消或类似方法.此时,有时会发生崩溃,因为我分配给请求的委托已被解除分配.有没有办法在提交后取消图表请求?
我目前在formSheet样式中显示一个模态UIViewController,它与coverVertical动画一起呈现.我试图从它呈现另一个模态UIViewController,使用currentContext作为演示样式,flipHorizontal用于动画样式.它确实有效,但翻转后面有一个坚实的白色白色背景.有关如何使用formSheet样式中预先存在的模态UIViewController的flipHorizontal样式成功呈现另一个表单模式UIViewController的任何建议,请欣赏!谢谢
码:
// Loading of first modalVC
- (void)showModalVC {
Modal1VC *modal1VC = [[Modal1VC alloc] init];
modal1VC.modalPresentationStyle = UIModalPresentationFormSheet;
modal1VC.modalTransitionStyle = UIModalTransitionStyleCoverVertical;
[self presentModalViewController:modal1VC animated:YES];
[modal1VC release];
modal1VC.view.superview.bounds = CGRectMake(0, 0, 400, 400);
}
// Loading of second modalVC in Modal1VC
- (void)buttonTapped:(id)sender {
UIViewController *modal2VC = [[UIViewController alloc] init];
modal2VC.modalTransitionStyle = UIModalTransitionStyleFlipHorizontal;
modal2VC.modalPresentationStyle = UIModalPresentationCurrentContext;
modal2VC.view.backgroundColor = [UIColor greenColor];
[self presentModalViewController:modal2VC animated:YES];
[modal2VC release];
modal2VC.view.superview.bounds = CGRectMake(0, 0, 400, 400);
}
Run Code Online (Sandbox Code Playgroud) 我正在使用CoreText来呈现多列文本.但是,当我将第一段的第一个字母设置为比文本的其余部分更粗体,更大的字体时,我会产生2个问题(在附加图像中都可见):
第一行下面的间距太大(我明白这是因为第一个字符可能是ag,y,p,q等.
第一行下面的行现在不与下一列中的相应行对齐.
如何克服这两个问题的任何建议将不胜感激,谢谢.
在我的应用程序,我想在一定条件下,类似的照片,当用户将其置于选择模式(Share复制一个工具栏等,按钮出现在标签栏),应用程序会发生什么一个工具栏,以取代的TabBar.我怎么能实现这个目标呢?