storyboard

Using Navigation inside TabController in StoryBoard.

帅比萌擦擦* 提交于 2019-12-25 05:28:14
问题 I am new to iPhone app development, I have a tabbed based app, On first tab view I have a search form, on when I put value in search and get results in array I want get result in table but in Navigation View Controller, with a detailed view option and a button inside cell which will add cell items into favourites, every thing is working fine, I am unable to get results in navviewcontroller table, I am using storyboard in xcode 4.6.2. 回答1: Just Select the View in Storyboard that you want to

several tableviews in one view

橙三吉。 提交于 2019-12-25 05:12:57
问题 I am trying to make a view that contains several tableViews in it - basically a week calendar view that each day is a tableView that shows the events of that day. In the storyboard I'v added to the view a tableView and tried to connect it in two different ways in the viewDidLoad: DaysTableViewController * tvc = [[DaysTableViewController alloc] initWithStyle:UITableViewStylePlain]; self.dayView.delegate = tvc; self.dayView.dataSource = tvc; or: DaysTableViewController * tvc = [

How to add UIViewController as subview , to be visible above tabbar?

回眸只為那壹抹淺笑 提交于 2019-12-25 04:37:06
问题 I want to add the view of a UIViewController as a subview. But self.view is having a UITabBarController. I want to display the subview above tabbar. So that tab bar hides behind subview. Please suggest some idea. 回答1: Try this, if you want to hide/show the UITabBarController of view: For hide the tabbar: - (void)hideTabBar:(UITabBarController *) tabbarcontroller { for(UIView *view in tabbarcontroller.view.subviews) { if([view isKindOfClass:[UITabBar class]]) { [view setFrame:CGRectMake(view

iOS iPhone 6 Autolayout - Full Width and Height

与世无争的帅哥 提交于 2019-12-25 04:32:15
问题 I designed my app to work on iPhone 5 and now want to make it compatible with iPhone 6 screens. When I change the simulated metrics size to iphone 5.5 inch in the storyboard, I see that my view is no longer the full width and height of the screen. How do I specify that the width and height should be the full screen dimensions? 回答1: Don't change the simulated metrics. Just pick one (iPhone 5 is good, or you can even go with the default 600x600 layout) and leave it there. Make sure auto layout

Push Segue Error even when “Push Segue” is not used (I used modal segue)

北城余情 提交于 2019-12-25 04:27:07
问题 I got this error: 'Push segues can only be used when the source controller is managed by an instance of UINavigationController.' I've encountered this error before and I am very familiar with it. It's usually associated with the use of a navigation controller. However, in my storyboard, I used a modal segue and I did not use a navigation controller. I have no clue why this error is there... I also updated the class ViewController to MasterViewController as the Initial View Controller but

Push Segue Error even when “Push Segue” is not used (I used modal segue)

纵然是瞬间 提交于 2019-12-25 04:27:02
问题 I got this error: 'Push segues can only be used when the source controller is managed by an instance of UINavigationController.' I've encountered this error before and I am very familiar with it. It's usually associated with the use of a navigation controller. However, in my storyboard, I used a modal segue and I did not use a navigation controller. I have no clue why this error is there... I also updated the class ViewController to MasterViewController as the Initial View Controller but

Q: tableView created by storyboard running appears space form the top to the first cell [duplicate]

戏子无情 提交于 2019-12-25 04:13:29
问题 This question already has answers here : Why is there extra padding at the top of my UITableView with style UITableViewStyleGrouped in iOS7 (65 answers) Closed 3 years ago . Create the tableView in the storyboard , and set the constraints to arrive the all around. But when running on simulator, there appear some space form the top to the first cell. The issue on simulator: The Debug View Hierarchy: And in the storyboard i set the constraints : 回答1: In the attribute inspector of your view

Custom Control Styling/Triggers

隐身守侯 提交于 2019-12-25 04:04:12
问题 I'm trying to make a custom control that consists of several buttons and a couple labels, but the buttons are supposed to be invisible, showing only the content within them. I can get rid of the border, background, etc by setting them to Transparent. But whenever I MouseOver them the default windows hover effect shows the whole button again. I've tried numerous guides on custom controls, but ultimately cannot figure out how to override this. Basically my questions boil down to, how much of

iOS Autolayout : Dynamically adjust controls

江枫思渺然 提交于 2019-12-25 03:08:49
问题 I am practicing autolayout, I have struck on some issue, My layout is like == Username TextField == == Password Textfield == ==Login Button == But when user enters wrong username or password it should be changed to == Username TextField == == Password Textfield == == Verification Textfield == ==Login Button == I know how to achieve it by setting frames but I want to do it by autolayout and constrains So I need your help to do it. And it would be great if I can do it using storyboard without

Autolayout - How to Change width spacing between iPhone 6 and Plus

二次信任 提交于 2019-12-25 02:59:42
问题 Ok, I have been pulling my hair out for a few days now and thought I would ask the community how to deal with width sizes or the gaps between buttons in xcode 6.4 or 7 (tried them both). Ideally I want 2 buttons near the bottom and they need to scale properly based upon iPhone portrait mode. I have added the 1x, 2x, and 3x pngs of the button to the asset system and my auto layout is set for wCompact hRegular which from what I understand allows you to target all iPhone devices in portrait mode