storyboard

Xcode adds a lot of <animations/> tag in my storyboard and xib file

妖精的绣舞 提交于 2019-12-19 12:25:11
问题 Just wanna know if anybody has the same issue as mine: Xcode adds a lot of tags into the storyboard I touch. I try to remove but I can't because it keep adding those tags back. It this a bug of the new Xcode I'm using (7.0.1)? 回答1: As of Xcode 7.2 Beta (7C46I) released on 10/28/2015, just like these tags were added automatically when opening a Storyboard or XIB file in Xcode 7 or 7.1 on El Capitan, these tags are now being removed automatically by just opening a Storyboard or XIB file. (It

Endless recursive calls to initWithCoder when instantiating xib in storyboard

冷暖自知 提交于 2019-12-19 08:04:21
问题 In order to re-use a certain subview throughout my application (which is storyboard based), I decided to build the subview as a nib, and load it in. To do this, I have done the following: I have a UIView subclass we can call Widget. I create a corresponding xib file, set the File owner property to my new subclass, hook up the IBOutlets. Then, in my storyboard, I have a uiview inside of a view controller, and I set its class to the Widget class I created. Within the widget class, I override

ScrollView created in storyboard initialized with frame 0,0,0,0

筅森魡賤 提交于 2019-12-19 06:56:26
问题 I created a UIScrollView in the storyboard, linked it as a property to the view controller, and am now trying to add some subviews with pagination. But, even though I set the dimensions in the storyboard graphically, the frame of the UIScrollView ends up being 0,0,0,0. Am I required to hardcode the dimensions even though I already specified them graphically in the storyboard? Also, kind of related, is it possible to customize subviews in the storyboard to use in this scroll view? It seems

Storyboard UINavigation Controller Back Button Text

梦想的初衷 提交于 2019-12-19 04:02:12
问题 In XCode 4.5.1 creating a storyboard app with a Navigation controller, I am having a hard time trying to set the BACK button for any view controllers that are pushed. I'm using segue's and the view controller shows as expected. However I want to change the name of the navigation bar and back button dynamically and placed this in my ViewWillAppear: self.title = @"Select Songs"; [self.backButton setTitle:@"Add"]; changes the title of the navigation bar but the back button still displays the

C# WPF抽屉效果实现(C# WPF Material Design UI: Navigation Drawer & PopUp Menu)

为君一笑 提交于 2019-12-18 19:40:21
【推荐】2019 Java 开发者跳槽指南.pdf(吐血整理) >>> 时间如流水,只能流去不流回! 点赞再看,养成习惯,这是您给我创作的动力! 本文 Dotnet9 https://dotnet9.com 已收录,站长乐于分享dotnet相关技术,比如Winform、WPF、ASP.NET Core等,亦有C++桌面相关的Qt Quick和Qt Widgets等,只分享自己熟悉的、自己会的。 一、先看效果: 二、本文背景 有网友给站长Dotnet9留言:“WPF中能否实现UWP中SplitView效果,即抽屉效果吗?” Dotnet9记得国外开源C# WPF控件库 MaterialDesignInXaml 中有这种效果,可以查看本站写的推荐文章: MaterialDesignInXaml控件介绍 ,站长也是个喜欢码砖的人,对代码是很感兴趣的,遂Google了一个YouTube视频敲出本文实现的代码,希望对他和您有用。 三、代码实现 站长使用.Net Core 3.1创建的WPF工程,创建PopUpAndNav解决方案后,需要添加两个Nuget库:MaterialDesignThemes和MaterialDesignColors。 添加Material两个库 工程比较简单,主要就是演示窗口MainWindow: 解决方案结构 代码不多,我就全部贴上代码吧。

Auto Layout keeps stretching UIImageView

爷,独闯天下 提交于 2019-12-18 18:53:28
问题 I am using Auto layout and it's driving me crazy. I have done everything I could to prevent UIImageView from stretching all over. I have no idea why it does that. I tried using constraints, solving auto layout issues. For now, the only solution was turning the auto layout itself. Could anyone please tell me why xcode is completely ignoring my constraints? I would expect the UIImage to stay as 320x320 when I explicitly set it as that, but noooooooo.... I want to post images, but the site won't

Xcode 9 Storyboard: an internal error occurred. editing functionality may be limited

烂漫一生 提交于 2019-12-18 18:42:20
问题 When I am opening my project in Xcode 9, getting above error for Storyboard and Launchscreen. Note: Cleaning derived data didn't help me. Please have a look at the screenshot. 回答1: You can find the issue in Problem Report, just clink on report a bug and open the log.txt file where you can find the issue. In my case i set invalid table row height. 回答2: Trash derived data by two ways either by command or Preferences. rm -rf ~/Library/Developer/Xcode/DerivedData/ or Xcode -> Preferences ->

Storyboard TableView with Segues to Multiple Views

落爺英雄遲暮 提交于 2019-12-18 17:30:11
问题 I am having an issue with designing a storyboard. I currently have an app in the app store that was designed with XIB files. I have a tableView placed on a UIViewController - not a tableViewController - that loads a unique viewController for each row that is selected. I am trying to convert this concept to a storyboard. I've done the following Place a UIViewController in the Storyboard. Place a UITableView on the UIViewController so I can customize the table view. I tried making connections

'Receiver has no segue with identifier' when identifier exists

做~自己de王妃 提交于 2019-12-18 17:29:44
问题 For an iOS app, I have a story board and multiple controllers, and a segue going from controller GameClass to controller SettingsClass . The segue, in view Controller GameClass has an identifier called GameToSettings : However, when I want to call the segue from my GameClass : [self performSegueWithIdentifier: @"GameToSettings" sender: self]; I get the error message *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: 'Receiver (<GameClass: 0xcf0c550>) has no

Custom View - self.frame is not correct?

▼魔方 西西 提交于 2019-12-18 16:12:26
问题 So I have a custom UIView class class MessageBox: UIView { override init(frame: CGRect) { super.init(frame: frame) createSubViews() } required init?(coder aDecoder: NSCoder) { super.init(coder: aDecoder) createSubViews() } func createSubViews() { let testView = UIView(frame: self.frame) testView.backgroundColor = UIColor.brown self.addSubview(testView) } } I added a UIView inside the storyboard and gave it some constraints: 100 from the top (superview), 0 from the left and right, height is