storyboard

How can I create space between table view cells using constraints?

这一生的挚爱 提交于 2019-12-12 04:47:46
问题 As you can see in the screenshot, there's no space between the top image and the top of the screen. Also, all my images are not the same size. How can I create space between these cells and also make all the images the same size. 回答1: You could create a height constraint on the UIImageView . Then create an aspect ratio constraint and set it to something like 16:9. Then set the contentMode property of the UIImageView to AspectFill and turn on Clip To Bounds . Then constrain the top of the

Access ItemsControl Items and Animate One by One

自闭症网瘾萝莉.ら 提交于 2019-12-12 04:39:53
问题 Today is a good day since I started with WPF, this for a launcher I'm creating. Using the following code, I managed to get the result to be seen in the screenshot: <Grid> <ItemsControl ItemsSource="{Binding Programs}"> <ItemsControl.ItemsPanel> <ItemsPanelTemplate> <WrapPanel Orientation="Horizontal" VerticalAlignment="Center" HorizontalAlignment="Center" /> </ItemsPanelTemplate> </ItemsControl.ItemsPanel> <ItemsControl.ItemTemplate> <DataTemplate> <Button Content="{Binding Text}" Background=

Swift 3: Image does not show when setting isHidden=false

余生长醉 提交于 2019-12-12 04:37:53
问题 I followed a tutorial about how to create an iOS app where a title image and a background image are shown once a button is hit (there are checked as "hidden" in the attribute inspector). I am using Swift 3 and Xcode 8. That's what the code looks like: import UIKit class ViewController: UIViewController { @IBOutlet weak var background: UIImageView! @IBOutlet weak var titleImage: UIImageView! @IBOutlet weak var welcomeBtn: UIButton! @IBAction func welcomePressed(_ sender: UIButton) { background

Possible to customize font of prompt string in nav bar on IB?

若如初见. 提交于 2019-12-12 04:11:58
问题 Is it possible to customize the prompt string at all? I have hooked up the navigationBarItem to my ViewController and added a string as the "Prompt" via IB. There are no properties following the prompt class that allow me to alter the contents of the string, color, etc etc. I was wondering if anyone knows any other possible work around for this problem? 回答1: It is possible to customize the prompt appearance with one big limitation, the style of the prompt and of the title will always be the

How to stop slide transition into Second VC before it covers UIView?

允我心安 提交于 2019-12-12 04:02:47
问题 In my application I have a uiview at the top of the screen. When I tap that UIView I have a second View Controller slides up. What I would like to accomplish is that when the second View Controller slides into the screen it stops right before it covers up the UIView What I am trying to accomplish is have a view slide up that contains store information such as hours open, address, phone number etc. So I was thinking that I could just have another view controller that holds all of this

GLTapLabel Inside UITableView

不羁的心 提交于 2019-12-12 03:57:24
问题 I'm using GLTapLabel to display my text in my UITableView . It will have some links I can click on as GLTapLabels , but when I click those links the tableView:didSelectRowAtIndexPath: fires. So how can I detect the click action in those links? 回答1: Implement tableView:willSelectRowAtIndexPath: and return nil for any row you don't want to be selected. Return Value An index-path object that confirms or alters the selected row. Return an NSIndexPath object other than indexPath if you want

Storyboard UIImagePicker overlay UIButton does not dismiss preview

只谈情不闲聊 提交于 2019-12-12 03:56:26
问题 update 2 viewDidAppear is executed twice, once before and once after, the overlay button is touched. Would a fix be to add a conditional to viewDidAppear which would return control to the calling class? If so, I would appreciated suggestions. Or maybe the very fact that viewDidAppear execute twice suggests another approach to a fix? update 2 update 1 Maybe the problem is my usage of viewDidAppear and viewDidLoad shown below. Can anyone help, please? - (void)viewDidAppear:(BOOL)animated { self

UITabBarItem does not update image

回眸只為那壹抹淺笑 提交于 2019-12-12 03:45:01
问题 For some reason, only one image of my UITabBarItem does not show up. This started to happen after I refactored the storyboards to organize them. When I run the app, no message is triggered to the debugger, it just don't show up. The image is being set in storyboard and nothing programmatically is being done to set it . It shows up in Interface Builder, but when I run the app it doesn't. Already tried delete the image in catalog, rename it and perform clean up, but nothing helped. 回答1: Few

Detail View on Storyboard too zoomed in - creates misaligned objects in simulator

余生长醉 提交于 2019-12-12 03:26:16
问题 I have perhaps a beginner's question but have not found any solutions addressing this specific problem after searching endlessly on stackoverflow and other forums. My detail view in the storyboard appears to be too zoomed in. At this point, zooming in and out simply zooms in and out on the storyboard, but not the detail view specifically. Indicators of this are that the alignment arrow to the left of my button is not positioned at half-latitude of the Detail View box, although when I align my

Chain two segues to look like one

时光怂恿深爱的人放手 提交于 2019-12-12 03:24:19
问题 I have this structure in story board (lines represents segues): B / A \ C I want to use A (view controller) as a "hub". But I want to say in C that I want to B . I'll set next target (doesn't matter how) and perform unwind from C to A which know where to go next, and in unwind target action it calls ther right performSegueWithIdentifier but nothing happens. This was supposed to be an proof of concept and it would results in two animations. The target solution would be for user to transition