uistoryboard

How can I make my UIView visible in Xcode's Storyboard editor?

半城伤御伤魂 提交于 2020-01-15 11:49:06
问题 Please have a look at the screenshot that shows a part of a storyboard in Xcode. It is one controller. On the same level as the controller there are two UIViews "Date Picker View" and "Input Accessory View". In the controller itself, they are shown in the bottom toolbar (see 2nd screenshot - the two icons to the right are tiny previews of the the views). But how can I edit them? I cannot get them on the screen! I know they are there but I'd like to edit them (used to work before I made them

Background during modal view horizontal flip transition

喜夏-厌秋 提交于 2020-01-14 19:18:26
问题 I am using an iOS 5 storyboard-based project. When presenting a modal view controller I have selected to use the horizontal flip transition. During the transition the background is black, which is not particularly aesthetic given the design of my app. How can I change the background colour during the transition? On non-storyboard projects I was able to change the background colour of the MainWindow.xib, but since this file is no longer present in storyboard projects this cannot be done.

How to setup a partial curl modal not hiding toolbar?

♀尐吖头ヾ 提交于 2020-01-13 20:20:07
问题 In the Google Maps app on iPhone, the toolbar in the buttom is still visible after the modal with a partial curl transition is preformed. When I setup a modal seque in my storyboard with a partial curl, the new view controller is hiding the toolbar from the parant view. How can I setup a partial curl like the Google Maps app? 回答1: You'll probably need to go with OpenGL ES for this one. Core Animation exposes the ability to work with layers, even in 3-D, but all layers are just rectangles and

How can I use an Embed Segue in iOS 5?

大城市里の小女人 提交于 2020-01-12 05:43:29
问题 iOS 6 introduced the Embed Segue, allowing custom container controllers to be used in Storyboards. Is there anyway to duplicate this for iOS 5? 回答1: The challenge here is that the child view controller's view is often to be added as a subview of some container view of the parent view controller. Since you can't have segues from random UIView controls, that defies creating segues from a UIView container view to the child's scene. Thus, you just have to write the code yourself. Fortunately, it

Retina tiled background for Launch Screen.nib

心已入冬 提交于 2020-01-11 04:33:08
问题 I'm trying out the new funky Launch Screen.xib (storyboard) instead of using launcher images in my iOS app. On my first page I have a tiled background image called bodybg@2x.png which I put on the background of that first page via code: self.view.backgroundColor = [UIColor colorWithPatternImage: [UIImage imageNamed:@"bodybg.png"]]; So I could do with having the same background on the Launch Screen. Presumably there's no way to execute code when the Launch Screen.xib is loaded, so how do I go

How to make textFields stay in place when keyboard moves up? Swift

混江龙づ霸主 提交于 2020-01-11 04:05:09
问题 I have created a form with 4 fields and one button. The view hierarchy looks like this: Main UIVIew, View (renamed contentView), on top of contentView I have 4 fields and 1 programmatically created button. When viewDidLoad is triggered, the button is not scrolled up so it can be visible in contentView. When starting to type in textFields, the textFields are scrolled up, outside of the viewable area. When firstResponder resigns (keyboard hidden) I cannot scroll the contentView. I will list the

AutoLayout multiline UILabel cutting off some text

烂漫一生 提交于 2020-01-09 06:20:29
问题 I'm trying to learn auto layout, finally thought I was getting the hang on it when this happened. I'm playing about with prototype cells and labels. I'm trying to have a Title, titleLbl - blue box in picture Money, moneyLbl - green box in picture Subtitle / Description, subTitleLbl - red box in picture So far I have this: What I want to achieve is: The green box should always display on 1 line fully The value inside the green box should be centred based on the blue box The blue box will take

iPhone utility application, Label text does not update in FLipSideView

时间秒杀一切 提交于 2020-01-06 08:27:20
问题 I am using the utility application template in Xcode with a main and a flipside view. In the main view I have a property label called L0. I am trying to copy that label on the flipside view. On the flipside view, I have declared @property (weak, nonatomic) IBOutlet UILabel *label; It is synthesized in the .m file @synthesize label = _label; and my prepareForFegue method is : - (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender{ if ([[segue identifier] isEqualToString:@

iOS Tab bar controller containing same Table views inside all tabs but different filtered data

人走茶凉 提交于 2020-01-06 07:53:05
问题 SOLVED: I think I figured it out on how to do it. I added tags to each of my view controllers for each tab. Then in the viewDidLoad method on the view controllers, I can add a switch based on which tab's tag is selected: self.tabBarController.tabBar.selectedItem.tag Issue: I am pretty new to iOS development and need some feedback on this- Here is the scenario: I am using storyboards for this. We have a navigation controller inside a tab bar controller. The Tab bar controller contains the same

How do you manage view tags in your iOS project? [closed]

ぐ巨炮叔叔 提交于 2020-01-05 14:03:12
问题 Closed . This question is opinion-based. It is not currently accepting answers. Want to improve this question? Update the question so it can be answered with facts and citations by editing this post. Closed 5 years ago . I have an iOS app that uses a few viewcontrollers with lots of elements. I built the viewcontrollers in the interface builder (in a storyboard). For some key elements (loginbutton, important text, etc..) I created an IBOutlet to be able to use these elements in my code