storyboard

iOS TableView Constraints doesn’t work [duplicate]

大城市里の小女人 提交于 2020-01-06 05:51:13
问题 This question already has answers here : Autolayout is ignored in Custom UITableViewCell (2 answers) Closed 2 years ago . Hi. I’m already tried to find some info about it at Goodle, but nothing could help me. I’m swift beginner. Help me, please. I want to auto layout this TableViewCell in TableViewController . Now it’s look fine in IB, Preview and Simulator, but only on this screen size, sure. Then I added by 5 constrains, as I saw at one StackOverflow answer, to each of subview of Cell like

Scale background image to iPhone 10

半腔热情 提交于 2020-01-06 03:58:12
问题 I'm using Swift 4, XCode 9. I have an iOS application which has a background image which was set using storyboard. The actual storyboard file is viewed from the frame of reference of an iPhone SE. However, I've never had a problem with the image scaling to bigger phone sizes, except now for iPhone 10. It won't fill the whole screen. How can I fix this? The background is displayed through an image view. I've tried changing the height of the image view both via story board and programmatically

How to proportinally size the image based on the iphone is using

本秂侑毒 提交于 2020-01-06 01:29:26
问题 Let say I have a large image (400wx700h) pixels. I want this image to be centered on the iphone and take 1/4 of the display area. Doesn't matter if is iphone 4 or iphone 6+, I still want this image to be centered and take only 1/4 of the display area. Also, I want to design this in storyboard and using constraints, with no coding. I know how to center the image, but not sure about the 1/4 portion. Can someone please guide me? Thanks Borna 回答1: Create constraints for equal width and height

Different storyboards for iPhone and iPad in xcode 6

北城余情 提交于 2020-01-05 10:30:13
问题 I am using different storyboards for iPhone and iPad. Main.storyboard and Main~iPad.storyboard . But when I try to set assets in the storyboard it shows them in iPhone sizes due to which I am having issues setting those assets in the correct place. Is there a way to make it detect the correct assets as per storyboard? such that it shows iPhone assets for Main.storyboard and iPad assets for Main~ipad.storyboard ? 回答1: Make sure you have set the Devices to "Universal": 来源: https://stackoverflow

Different storyboards for iPhone and iPad in xcode 6

两盒软妹~` 提交于 2020-01-05 10:30:12
问题 I am using different storyboards for iPhone and iPad. Main.storyboard and Main~iPad.storyboard . But when I try to set assets in the storyboard it shows them in iPhone sizes due to which I am having issues setting those assets in the correct place. Is there a way to make it detect the correct assets as per storyboard? such that it shows iPhone assets for Main.storyboard and iPad assets for Main~ipad.storyboard ? 回答1: Make sure you have set the Devices to "Universal": 来源: https://stackoverflow

What is the best way to achieve a diagonal text animation using storyboards in a Windows Phone Application?

醉酒当歌 提交于 2020-01-05 09:36:09
问题 I would like to create a storyboard that animates two TextBlocks by sliding them from right and left in the center of the Screen. I have tried rotating the TextBlocks and using Global Offset and Local Offset properties of Projection in Blend for Visual Studio and also manually using Translate X and Translate Y properties of the RenderTransform at specific Keyrames . The storyboard does kick off and appears perfect in Blend but when running on the actual device, the TextBlocks don't appear in

Segue implementation via code

霸气de小男生 提交于 2020-01-05 06:50:52
问题 I am a newbie in IOS. I am creating an Authorization Scene in a Storyboard. It consists of textFields (username, password) and buttons (Log In, Sign Up). When login and password are correct, UIAlertView is displayed with text "Success". After this, MainScene should be displayed. But I can't create a segue in Interface Builder. How can I implement it via code? 回答1: Here is what you can do: Create a Segue from your source ViewController (not control) to the destination ViewController. Give

Using nibs and storyboards together

北战南征 提交于 2020-01-05 04:02:57
问题 From what I have read on the internet, nibs and storyboards are comparable with each other in the same project. Now I am creating a tabbed application and would like to do the following: Tab 1: constructed with nibs, Tab 2: constructed with storyboards, Tab 3: constructed with nibs Initially I created everything with nibs so in my delegate I was passing from one tab to the next with this code: - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *

Error using StaticResource as Storyboard for a VisualTransition

随声附和 提交于 2020-01-05 03:31:15
问题 I have a VisualTransition inside of a VisualStateGroup for a Button control. The Storyboard property is bound to a StaticResource Storyboard: <VisualTransition From="MyLock" To="Unlocked" GeneratedDuration="0:0:2.0" Storyboard="{StaticResource Storyboard_Locked_ToUnlocked}"/> When I go to the "Unlocked" state using the VisualStateManager, I get the following exception: "System.InvalidOperationException: Specified value of type 'System.Windows.Media.Animation.Storyboard' must have IsFrozen set

is it possible to perform a segue from tab bar item?

百般思念 提交于 2020-01-05 02:59:05
问题 I used a UIview controller for my app home page and then added a tab bar at the bottom just like Facebook and then added 3 more tab bar item, it doesn't let me perform a segue when drag the tab bar item to a View Controller, is it possible progmatically or in storyboard? 回答1: Simple: You need a UITabViewController, tab bar items can't be used the way you're asking for. Ctrl+drag from your tabview controller to a view you'd like to include (Third in this case) You then select the view