xcode-storyboard

Custom view (xib) not visible on storyboard

假装没事ソ 提交于 2019-12-11 02:23:08
问题 I have a custom view xib where I have multiple TableViews . I am loading this inside a ViewController as a nested view: ViewController |_ View |_ View (This is where I load my Custom View) When I run my app, I can see the empty tables on screen, so my xib is loading correctly. So far so good. My problem is, I am unable to see my tables in the storyboard. So I am not able to ctrl +drag and proceed further. How can I see my custom view inside the storyboard view? 回答1: Storyboards can only

Spring framework StoryBoard render Error

前提是你 提交于 2019-12-11 01:41:39
问题 I had a project working project.now I install the pod again 

pod 'Spring', :git => 'https://github.com/MengTo/Spring.git', :branch => 'swift3'

 No I am getting this error.
 “error: IB Designables: Failed to render and update auto layout status for AvailabilityViewController no suitable image found. Did find: Spring.framework: required code signature missing for 'Spring.framework’ ”

 Now my app is running.but I could not find views in story board.
 I tried to remove all derived data from

Unwind segue does not release my view controllers

巧了我就是萌 提交于 2019-12-10 21:13:37
问题 I have something like this: My rootViewController is a navigationBar - let this be A. The rest are normal UIViewControllers , and are programmatically segue via push (through a button IBAction method). However going from D -> A, I use unwind segue (also via performSegueWithIdentifier:sender :). The issue here is that when the segue is performed, B, C and D are not deallocated at all. Not only is this causing a memory leak issue but my timers are still running. I'm not sure why this is the

UITextView starting from bottom

谁都会走 提交于 2019-12-10 15:16:15
问题 I'm having trouble with a UITextView . I have seen other people have had this issue before, but whenever my app loads on my phone, all the UITextViews start from the bottom of their text and I have to scroll up. I have tried numerous solutions but I need a solution to use on ONLY the Storyboard as I have some views without designated classes. EDIT I think this is happening when scrolling is enabled - so how do I have scrolling enabled but stop this from happening? 回答1: Can not reproduce your

Polymorphism in Storyboard ViewControllers

孤人 提交于 2019-12-10 11:26:25
问题 I am wondering how can I implement polymorphism in the iPhone XCode storyboard ViewControllers. This is my problem: Two different ViewControllers in my application are segueing to a common ViewController. This common ViewController is behaving differently depending on the VC it was segued from - different remote API server calls and CoreData fetches are performed (for the first it presents all users in a table, for another it presents a list of admins - subclass of users, and I may have a

Editing storyboard in Xcode 5 is very slow

ε祈祈猫儿з 提交于 2019-12-09 11:34:52
问题 I have Xcode 5 and storyboard editing is very slow. Each time I start Xcode I get the message: "The document "MainStoryboard.storyboard" had 26 internal inconsistencies that were found and repaired." and "Multiple resources have the same name: yellowbutton.png, etc. The preceding issues may have occurred due to an SCM operation such as merging." Standard solutions as deleting the workspace file did not help. How can I solve this? Thanks! 回答1: I had a similar result when I added a segmented

How do you bind a storyboard view to a Core Data entity when using NSDocument?

穿精又带淫゛_ 提交于 2019-12-09 06:59:38
问题 I'm building an OS X app that uses core data, NSDocument, storyboards, and Cocoa bindings. My expectation is that the following occurs: An instance of MyDocument ( NSDocument subclass) is created. MyDocument creates a Core Data NSManagedObjectContext that represents the document's data. MyDocument instantiates an NSWindowController from the storyboard by its identifier. Within the storyboard, the window controller contains DocumentEditorViewController ( NSViewController subclass) which

Switching between localized storyboard at runtime

我是研究僧i 提交于 2019-12-09 04:21:40
问题 I have iPhone application using storyboard with two language (Arabic / English) how i can switch from Arabic localization storyboard to English storyboard without need to change language iPhone settings (At run time) 回答1: I have resolved you can do it as the following below code : UIStoryboard *storyBoard; if ([language isEqualToString:@"ar"]) { lan = [[NSLocale preferredLanguages] objectAtIndex:0]; storyBoard = [UIStoryboard storyboardWithName:@"MainStoryboard_iPhone5Arabic" bundle:bnd]; }

Can you add IBDesignable properties to UIView using categories/extensions?

空扰寡人 提交于 2019-12-09 02:34:48
问题 For those that don't know what I'm talking about, Xcode 6.0 added new features, IBDesignable and IBInspectable. When you tag your custom views with IBInspectable properties, those properties show up in the Attributes Inspector in IB. Likewise, when you tag a custom UIView subclass with IBDesignable, Xcode compiles your views and invokes the code to render your view objects right in the Xcode window so you can see what they look like. The technique for adding IBDesignable and IBInspectable

How to display launch image

孤者浪人 提交于 2019-12-08 16:37:46
问题 I'm a very new to iOS. My Xcode version is 7.2.1 and I'm trying to run on iOS9 using Swift. My problem is that I'm very confused with how I should be creating the Launch Screen Image. I found that there are many ways of creating the launch screen images for different version of iOS. Can someone please explain to me how to setup my launch images? The process I've followed is: I create Launch Screen.storyboard I create different sizes of launch screen images in Photoshop. In General tab, Choose