uistoryboard

Why am I getting a “Title set but using a system Identifier” warning?

青春壹個敷衍的年華 提交于 2019-12-05 12:32:25
问题 I get the following warning: MainStoryboard.storyboard: Title set but using a system Identifier (These attributes are mutually exclusive; the Title will be ignored) I have a manually placed toolbar on my storyboard with a Title and a Cancel button. What's wrong about that? 回答1: Are you adding a title to the Cancel button (e.g. “Cancel”)? You don’t need to do this as setting the bar button item as a system bar button item (like Cancel) will automatically set the title—and it’ll be localized

Prevent access to UIViewControllers with tab bar controller (storyboard)

倖福魔咒の 提交于 2019-12-05 09:52:14
问题 I currently encountering a problem with my iOS application. I am attempting to incorporate a gradual login pattern, i.e.: the use can access some of the app without being required to login. Required features are as follows: At all times the user can view all navigation items that require login When the user attempts to access an uiview(controller) that requires login, they will be prompted with a UIAlertView asking them to log in. (Preferably the UIAlertView will appear when the app

Prototype UITableViewCell is not at top of UITableView in Storyboard

こ雲淡風輕ζ 提交于 2019-12-05 08:38:19
As the questions already says: When I add a prototype UITableViewCell to my TableView, the cell is not displayed at the top, here is a image: How can I get the cell to the top of my TableView again? The problem is that your trackViewController.automaticallyAdjustsScrollViewInsets == YES, so additional topInset of 64px will be added to first UIScrollView in its view (this is UITableView in your case). You can do the following: Set table view origin y to 0 or set automaticallyAdjustsScrollViewInsets to NO. In storyboard select viewcontroller (the yellow circle with a white square inside) then

Swift add line above to control

橙三吉。 提交于 2019-12-05 08:25:12
In the below screen, I want to add horizontal line above to "Item" label and after "Add" button (below to the add button, I have dynamic table). UIGraphicsGetCurrentContext() doesn't work here. Can someone help me how to do this? It is simple to add a subview to act as a line. For example: Swift 4 var lineView = UIView(frame: CGRect(x: 0, y: 100, width: 320, height: 1.0)) lineView.layer.borderWidth = 1.0 lineView.layer.borderColor = UIColor.black.cgColor self.view.addSubview(lineView) Objective C UIView * lineview = [[UIView alloc] initWithFrame:CGRectMake(0, 100,320,1)]; lineview.layer

xcode storyboard - ibtoold unarchiving exception

心已入冬 提交于 2019-12-05 08:02:25
the exception is; CompileStoryboard Catwall/en.lproj/MainStoryboard.storyboard cd /Users/guvenozyurt/Desktop/git/catwall_ios setenv IBSC_MINIMUM_COMPATIBILITY_VERSION 5.1 setenv PATH "/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin" setenv XCODE_DEVELOPER_USR_PATH /Applications/Xcode.app/Contents/Developer/usr/bin/.. /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/ibtool --errors --warnings --notices --output-format

How to set View height as percentage of the screen height in Storyboards with XCode 7

大憨熊 提交于 2019-12-05 05:27:14
I need to design the view like below image and I have tried with fixed heights and also tried compact width and regular height and regular width and compact height but those scenarios did not worked for me. How can i set View height as percentage of the screen height in Storyboards? I'm using Xcode 7 Basically you need to act on the multiplier property of an height equal constraint. To do that while pressing CTRL, drag from the view to its superview and select equal heights constraint , later edit this constraint in Size Inspector by setting its multiplier the desired value can be expressed

Reference to the segue source view controller

跟風遠走 提交于 2019-12-05 04:04:45
Within my viewDidLoad I would like some custom code based upon the previous controller. How can I access the segue source controller or the previous segue identifier in the destination controller's viewDidLoad to handle this? There is no way to get a reference to the segue that created you. You could create a property (sourceVC in my example) in the destination controller, and assign self to this property in the prepareForSegue method (in the source view controller): [(DestinationVCClass *)segue.destinationViewController sourceVC] = self; You can just use [self presentingViewController] and

Error compiling storyboard files using Xcode 6 beta 5

淺唱寂寞╮ 提交于 2019-12-05 03:01:20
My app was building fine in Xcode 6 Beta 4. I updated to Beta 5 today and ran into 2 errors: The file “Storyboard_iPad-SBPartialInfo.plist” couldn’t be opened because there is no such file. Command /Applications/Xcode6-Beta5.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/ibtool failed with exit code 255 What is that SBPartialInfo.plist? I could not search for it via spotlight. My Storyboard files are storyboard_iphone and storyboard_ipad I was also experiencing the following error after upgrading to Beta5: Command /Applications/Xcode6-Beta5.app/Contents/Developer

Memory problems when pushing many view controllers on UINavigationController

孤者浪人 提交于 2019-12-05 02:51:47
问题 I'm making an interactive book for the iPad and am using UINavigationController to implement the navigation between a page and the next. When a user turns the page, the next page is pushed on top of the navigation stack. I'm now 15 pages into the app, and the app crashes when I try to go from page 14 to page 15. No error message in the console, nothing in the device's crash logs neither. Each view controller's scene in the storyboard has UIImageViews displaying images that are between 5MB and

Does my Base Internationalization storyboard have to correspond to a fallback language for all unlocalized languages and strings?

僤鯓⒐⒋嵵緔 提交于 2019-12-05 01:26:30
I've looked through some internationalization documentation and videos on apple developer, but I never found an explicit answer to that question. In Apple's tutorials I see the Base.lproj folder alongside en.lproj and zh.lproj -- the example translation (localization) is from English to Chinese. But they tell me that there's a file en.lproj/myStoryboard.strings , and that is confusing. I can't see the point in creating an English localization for the storyboard (that is already in English). So my questions are if the user will ever see the strings in the Base.lproj/myStoryboard.storyboard ? Do