草庐IT

msg_control

全部标签

ios - 缺少 View Controller

用于在“显示尺寸检查器”上显示以便我可以更改“模拟尺寸”的“ViewController”,它在哪里?我试过帮助,它给了我图片中显示的内容 最佳答案 选择View>实用工具>属性检查器点击这个蓝色突出显示的按钮 关于ios-缺少ViewController,我们在StackOverflow上找到一个类似的问题: https://stackoverflow.com/questions/34696811/

ios - 同一 Controller 中的两个 UITableView

我认为这是一个错误。iOS7.0,XCode5。我的Storyboard中有一个TableViewController。我有一个带有“3”个静态单元格的TableView。然后我添加了一个“View”,并在其中添加了一个带有动态原型(prototype)的TableView。当我尝试在动态表格中添加超过“3”个单元格时,应用程序崩溃了。2016-01-1008:18:21.358Know[1381:a0b]***Terminatingappduetouncaughtexception'NSRangeException',reason:'***-[__NSArrayIobjectAtIn

ios - 如何使用 Objective-C 在 iOS 9 中隐藏特定 View Controller 的状态栏

我想隐藏特定ViewController的状态栏,而不是所有ViewController。然后我试了一下,[[UIApplicationsharedApplication]setStatusBarHidden:YES];inthe`.AppDelegate.m`insidethe`didfinishlaunchwithoption`butitdidn'twork.andalsoitisdeprecated.然后我在我的ViewController中尝试-(BOOL)prefersStatusBarHidden{returnYES;}这也没有用。任何人都可以帮我解决这个问题。谢谢你我不想

ios - supportedInterfaceOrientationsForWindow 返回 UIInterfaceOrientationMaskPortrait 但我的 View Controller 显示为横向

我正在处理appdelegate.m文件中的所有方向。supportedInterfaceOrientationsForWindow为我的一些ViewController返回UIInterfaceOrientationMaskLandscape,为一个ViewController返回UIInterfaceOrientationMaskPortrait。当我从横向ViewController移动到纵向ViewController时,我想supportedInterfaceOrientationsForWindow返回UIInterfaceOrientationMaskPortrait但我

ios - 如何在委托(delegate)中加载插页式广告并在另一个 View Controller 中显示?

我试图在应用程序启动后立即请求Admob插页式广告,因此我尝试在appDelegate.m中实现,但是当我稍后尝试在另一个ViewController中显示它时,我收到一个错误消息,即插页式标识符在此ViewController中找不到。这是我正在使用的代码在AppDelegate.m中@property(nonatomic,strong)GADInterstitial*interstitial;-(BOOL)application:(UIApplication*)applicationdidFinishLaunchingWithOptions:(NSDictionary*)launc

ios - 推送 View Controller 后出现意外延迟

我有选项卡栏Controller,其中一个选项卡内有3个容器ViewController。只能展示一个,其他的暂时移除。这些Controller的View在xib中定义。在其中一个容器中,我有表格View。当我点击单元格时,我必须按下ViewController。我第一次启动应用程序时,在推送ViewController时出现延迟。回到TableView并再次推送后,没有延迟。我在didSelectRowAtIndexPath和新Controller的viewDidLoad中打印时间,延迟在2到4秒之间。这是我用来推送ViewController的代码:EventDetailsView

ios - 如何在自定义 UIView 中从一个 View Controller 返回到另一个 View Controller ?

我想从ViewControllerTwo返回到ViewControllerOne。我创建了一个负责执行此操作的按钮,但我的问题是该按钮是添加到ViewControllerTwo的自定义UIView类的一部分,该按钮不是ViewControllerTwo主视图的一部分。所以在自定义UIView类中,我有一个在单击按钮时使用react的方法...-(void)buttonClicked{[SecondViewControllerperformSegueWithIdentifier:"ShowFirstViewController"sender:nil];}当我这样做时,我得到一个错误:“p

ios - UINavigationController 在关闭呈现的 View Controller IOS 后表现错误

我现在正在使用tabbarController和uinavigationController,当我通过presentviewcontroller调用MFMailComposeViewController,并通过dismissviewcontrolleranimated解除时,我向后滑动并再次单击以推送viewcontroller我发现后退按钮消失了,标题是错误的.Tab->ViewController[A](导航Controller嵌入)-(PUSH)->ViewController[B](带后退按钮)-(Present)->MFMailComposeViewController-(关

ios - 在 iOS 的 SWRevealController 中保持 View Controller 的保存状态?

我在我的应用程序中使用SWRevealController。我有一个MainController作为应用程序启动时显示的“HOME”。现在我在该屏幕上有textfield和其他控件。当我切换到另一个屏幕并返回“主页”时,“主页”屏幕上的所有数据都消失了。它在那里不显示任何数据。我想保存它的状态。现在我想将该ViewController保留在堆栈中,这样当我返回此viewcontroller时,它仍保留在堆栈中,而其他ViewController只是弹出。请解释我该怎么做?我为此使用以下代码。-(void)tableView:(UITableView*)tableViewdidSelec

ios - 添加 Storyboard 引用后,选项卡栏 Controller 项目中不显示任何内容

我有一个标签栏Controller,并且有一些ViewController附加到它。所有ViewController名称及其对应的项目都完美地显示在选项卡栏中。当我尝试向它添加Storyboard引用时会出现问题。当我运行它时,该特定项目(Storyboard)的选项卡栏上没有显示任何内容。尽管它完美地显示在UI设计上。[请注意,第3项(Storyboard引用)是不可见的。此外,不可见的Storyboard引用作品。意思是,如果我点击不可见的地方,它会将我带到正确的Storyboard。我从here看到了一些答案.重构Storyboard的作品。但我不想使用它。无论如何,重构到Sto