storyboard

How to create underlined UITextField

混江龙づ霸主 提交于 2019-12-12 07:54:08
问题 iOS noob here When I add a default UITextField to the ViewController, it looks like this: My designer would like me to make the UITextField look like this (i.e. background is transparent, and just has an underline: How do I do this? Should be asking my designer for an image to set as background for the UITextField . What should the image look like? Should the image be = the blue background + the underline (minus the number i guess) Is that right? UPDATE : Based on direction below (from

Storyboard app run on iOS 7 OK but Navbar shift view on iOS 6.1

﹥>﹥吖頭↗ 提交于 2019-12-12 07:47:05
问题 While rebuilding my project with the new Xcode 5 released yesterday, I was disappointed to see my storyboard view controller shaken up. After many attempts to fix things, I must conclude I'm stuck with one remaining issue: Navigation View Controller makes the navigation bar overlaps with the content of the view. Doing so, the app is ok on a iOS 7 device (no overlapping), but with a iOS 6.1 device, the navbar overlaps. I ran a sample project from FlatUI to crosscheck the issue, and they have

ios 7 customizing UITableViewCell's content view

落花浮王杯 提交于 2019-12-12 07:40:07
问题 Using storyboard in ios7 the content view is explicitly viewed under the Table View Cell in the story board editor (opposed to previous versions where it was hidden from the interface). The problem is that I cannot connect the cell's custom elements to my custom cell's ib outlets anymore (subclass of UITableCellView ) and can only connect them to the table's content view ( UIView ) which CANNOT be customized (i.e. its custom class attribute is grayed) This leaves me with the option to use

I have to update frame of everything in storyboard every time I start Xcode

删除回忆录丶 提交于 2019-12-12 07:26:14
问题 So each time I open my project in Xcode, I have 100's of warning because the frames of every UI Object has been moved. I have to take the time and go to each UIViewController and update frames on it. Is there a reason this happens? How can I fix this? Any other information I need to mention?. 回答1: Do you use a repository for your code? There may be some configuration file missing, probably not comited properly 回答2: In my case, this was happening because size-class for which I have set the

Custom fonts in Mac sdk using storyboard

放肆的年华 提交于 2019-12-12 07:24:11
问题 How to add a custom font to storyboard in Mac app development. I went through some blogs and tried by adding font book and develop one NStextfield using this custom font using storyboard. But it is system dependent. I created the DMG and install in another computer it uses the default font. I did it programmatically, but my requirement is through storyboard. Please help me on this 回答1: I spent a bit of time trying to figure this out and found the solution in this related question. In your

UnitTest in swift | IOS Storyboard | Failed to cast viewcontroller class defined in objective c

こ雲淡風輕ζ 提交于 2019-12-12 06:55:28
问题 So I am trying to write down some test cases for one of my controller class, My viewcontroller is defined in objective c. I am writing test cases in swift. I have included my viewcontroller class in both my main target and my test target. I have also added the storybaord in both test and main target. In my test I am trying to load the view controller from story board, below is the code (this code is working fine in my normal project from swift class) let storyboard = UIStoryboard.init(name:

iOS Xcode -Editing Storyboard Objects Results In View Controllers Scenes Duplicating Another Scene Then Xcode Crashing

回眸只為那壹抹淺笑 提交于 2019-12-12 06:48:17
问题 I'm working on Sierra version 10.12.6 and Xcode 8.3 , I have 3 scenes in Storyboard that are all connected to one another via push segues. The 1st scene has a tableView and a cell with an imageView and 2 labels. The 2nd scene has a tableView and a cell with an imageView and 4 labels. The 3rd scenes has a tableView with a cell that contains 3 labels and a collectionView with a cell that has an imageView. When I try to make adjustments to the 3rd scene the 1st and 2nd scene automatically

where to get identifier for instantiateViewControllerWithIdentifier [duplicate]

烂漫一生 提交于 2019-12-12 06:39:11
问题 This question already has an answer here : instantiateViewControllerWithIdentifier in xcode 5 (1 answer) Closed 5 years ago . Suppose I create all my views in the storyboard, similar to this SO question. For the method SomeController *myController = [self.storyboard instantiateViewControllerWithIdentifier:@"yourIdentifier"]; where do I get/set "yourIdentifier" in the storyboard? Under Identity inspector > Identity are two options: Storyboard ID and Restoration ID . But per the document for

UITraitCollection Class for Updating the Size Class

此生再无相见时 提交于 2019-12-12 05:36:59
问题 Shall i use UITraitCollection Class for Updating the Size Class constraints? Is this Best Practice to update the Constraints? I have gone through the UITraitCollection, but don't know how to differentiate portrait and Landscape? 回答1: It sounds like you want a different layout based on iPad orientation. If adjusting constraint values is all you need to do, you can check the UITraitCollection 's horizontalSizeClass and verticalSizeClass properties. The size class properties values can be found

How can I add a storyboard animation to my page resources in C#, then call it again later?

北城以北 提交于 2019-12-12 05:13:11
问题 HubPage is my landing page. On Hubpage.xaml, I have a grid of 3x3, containing a Rectangle, what I'm calling a "cell". In HubPage.xaml.cs, particularly in the HubPage() constructor, I create a storyboard for each cell: CreateStoryboardForCell("Column0Row0"); CreateStoryboardForCell("Column0Row1"); ... CreateStoryboardForCell("Column2Row2"); I want to add a storyboard to the Page.Resources, normally I would do it in XAML, but I am attempting it from C#. Now, here is the CreateStoryboardForCell