草庐IT

ddr3_controller

全部标签

iOS 7 : Custom container view controller and content inset

我有一个包含在导航Controller中的TableViewController。当通过presentViewController:animated:completion:呈现时,导航Controller似乎会自动将正确的内容插入TableViewController。(谁能给我解释一下这是如何工作的?)但是,一旦我将组合包装在自定义容器ViewController中并显示它,TableView内容的最顶部部分就会隐藏在导航栏后面。为了在此配置中保留自动内容插入行为,我能做些什么吗?我是否必须“通过”容器ViewController中的某些内容才能正常工作?我想避免手动或通过自动布局调

iOS 7 : Custom container view controller and content inset

我有一个包含在导航Controller中的TableViewController。当通过presentViewController:animated:completion:呈现时,导航Controller似乎会自动将正确的内容插入TableViewController。(谁能给我解释一下这是如何工作的?)但是,一旦我将组合包装在自定义容器ViewController中并显示它,TableView内容的最顶部部分就会隐藏在导航栏后面。为了在此配置中保留自动内容插入行为,我能做些什么吗?我是否必须“通过”容器ViewController中的某些内容才能正常工作?我想避免手动或通过自动布局调

iOS 8 UIActionSheet 忽略 View Controller supportedInterfaceOrientations 和 shouldAutorotate

我有一个应用程序,它通过plist文件配置为支持纵向、左侧横向和右侧横向(即UISupportedInterfaceOrientations设置为UIInterfaceOrientationPortrait、UIInterfaceOrientationLandscapeLeft和UIInterfaceOrientationLandscapeRight)。但我已将支持的方向限制为仅在ViewController内纵向。如果我在ViewController的View上显示UIActionSheet然后旋转设备,则UIActionSheet会旋转到新的方向。这仅发生在运行iOS8(GMSee

iOS 8 UIActionSheet 忽略 View Controller supportedInterfaceOrientations 和 shouldAutorotate

我有一个应用程序,它通过plist文件配置为支持纵向、左侧横向和右侧横向(即UISupportedInterfaceOrientations设置为UIInterfaceOrientationPortrait、UIInterfaceOrientationLandscapeLeft和UIInterfaceOrientationLandscapeRight)。但我已将支持的方向限制为仅在ViewController内纵向。如果我在ViewController的View上显示UIActionSheet然后旋转设备,则UIActionSheet会旋转到新的方向。这仅发生在运行iOS8(GMSee

推送或弹出新 View Controller 时,iOS 7 自定义 UINavigationBar TitleView 移动

我使用以下代码为UINavigationBar使用自定义标题View://SetalabeltothenavbarTHLabel*titleLabel=[[THLabelalloc]init];titleLabel.text=@"Test";titleLabel.font=[UIFontfontWithName:APP_FONTsize:22.0];titleLabel.frame=CGRectMake(0,0,100,30);titleLabel.textAlignment=NSTextAlignmentCenter;titleLabel.textColor=CUSTOM_LIGHT

推送或弹出新 View Controller 时,iOS 7 自定义 UINavigationBar TitleView 移动

我使用以下代码为UINavigationBar使用自定义标题View://SetalabeltothenavbarTHLabel*titleLabel=[[THLabelalloc]init];titleLabel.text=@"Test";titleLabel.font=[UIFontfontWithName:APP_FONTsize:22.0];titleLabel.frame=CGRectMake(0,0,100,30);titleLabel.textAlignment=NSTextAlignmentCenter;titleLabel.textColor=CUSTOM_LIGHT

ios - 从 App Delegate 呈现 View Controller

我正在尝试使用以下代码从应用程序委托(delegate)中呈现一个ViewController:-(void)interstitialViewControllerRequestSucceeded:(UIViewController*)interstitialViewController{[self.window.rootViewControllerpresentViewController:(UIViewController*)interstitialViewControlleranimated:YEScompletion:NULL];}它将在初始ViewController上显示插页

ios - 从 App Delegate 呈现 View Controller

我正在尝试使用以下代码从应用程序委托(delegate)中呈现一个ViewController:-(void)interstitialViewControllerRequestSucceeded:(UIViewController*)interstitialViewController{[self.window.rootViewControllerpresentViewController:(UIViewController*)interstitialViewControlleranimated:YEScompletion:NULL];}它将在初始ViewController上显示插页

ios - 如何自定义模态视图 Controller 呈现动画?

我不想设置uiviewcontroller的modalTransitionStyle,而是想添加一个CAAnimation(或其他东西)。此代码可以在navigationController中执行自定义动画CATransition*transition=[CATransitionanimation];transition.duration=0.4;transition.type=kCATransitionFade;transition.subtype=kCATransitionFromBottom;[self.navigationController.view.layeraddAnim

ios - 如何自定义模态视图 Controller 呈现动画?

我不想设置uiviewcontroller的modalTransitionStyle,而是想添加一个CAAnimation(或其他东西)。此代码可以在navigationController中执行自定义动画CATransition*transition=[CATransitionanimation];transition.duration=0.4;transition.type=kCATransitionFade;transition.subtype=kCATransitionFromBottom;[self.navigationController.view.layeraddAnim