uistoryboard

UITableView reloadData not working when put it in Editing Did End IBAction, btter know why

a 夏天 提交于 2019-12-11 11:44:33
问题 I put a textfield in every cell of the table. And after editing the textfield, an EditingDidEnd Event will trigger. In the method of hanlding this event I try to use [XXXUITableViewController.tableView reloadData]; but it doesn't work(the delegate method is not called). If I try to reloadData in someway like hanlding Tapgesture, it works just fine. I can use anthoer way to make my app work, but it's better to know why is reloadData not working. Any ideas, thanks a lot. - (UITableViewCell *

WKInterfaceTable rendering issues. Both the scroll bar and last row are cut off

久未见 提交于 2019-12-11 11:43:28
问题 I'm developing a WatchKit app for the Apple Watch. I "finished" the app originally when the first beta was out back in Nov/Dec. I recently upgraded the the final release and somethings in WatchKit changed (as to be expected). I had to fix couple lines of code here and there since they changed how the app views start up. Anyway, after fixing the issues I noticed that my WKInterfaceTable displays and scrolls almost correctly. The last row in the table gets cut off (as indicated in the

Preview and Resizing in Xcode 6.3

扶醉桌前 提交于 2019-12-11 10:58:44
问题 I am using Xcode 6.3 , but I am not able get preview and Resizing button. The resizing button should be present at last in the attached image. There is 4 buttons in this panel before xcode 6.3 I am not able to see the last button of the following image: So how can achieve that 4th button? 回答1: Ok there is no option Preview and Resize in xcode 6.3.... If you want to check constraints then the option is Document outline and for preview .... just check below.. first select show assistant editor.

Copy Storyboard across size classes [duplicate]

梦想的初衷 提交于 2019-12-11 10:37:37
问题 This question already has answers here : why storyboard ui elements not showing on UIViewController in xcode 6? (5 answers) Closed 4 years ago . I have made a storyboard using "wCompact" (Compact Width) and "hRegular" (Regular Height") size class. Now when I change to "wAny"|"wHeight" all the components of on the storyboard to be specific that view controller disappears. I want to copy the same design for "wAny" (Any Width) and hAny ("Any Height") size class. How can I do it ? Right now I

UITabbarController showing only first tab

烂漫一生 提交于 2019-12-11 07:36:36
问题 I manually added UITabbarController in storyboard which is not root view controller. I added tabbar items to it and set segue relationships. I also set image and title of each tabbar item in code when the first view controller of UITabbarController is about to be presented but no matter what I do only the first item's image is visible. Other items images become visible only when they are tapped and their views are actually loaded. Any inputs how to fix it ? - (void)prepareForSegue:

How do I resize the tab bar items in Xcode 4.3.1?

一世执手 提交于 2019-12-11 07:25:53
问题 I've been searching on how to resize the tab bar items on the "Tab Bar Controller," but obviously couldn't find anything. The reason why I want to do this is because I have exactly 6 items, and it causes the "more" item to be created whenever you have 6 or more. So 4 items show up on the bottom and a "more" item that shows the other two items when clicked. My title for all my items are short, so I want to squeeze 6 of them right below without the "more" and the only way to do that is to

Get 'Touch Drag Inside' Distance When Setting IBAction From Storyboard

家住魔仙堡 提交于 2019-12-11 06:41:33
问题 I know how to set UIPanGesture events and recognizers and get the data I need when I create them programatically. However I am trying to learn how to work with the storyboard and use IBOutlets. I have dragged over an IBAction for 'Touch Drag Inside'. @IBAction func dragButtonDragEvent(sender: AnyObject) { println(sender) } The problem is the sender object I get is just the button itself. Is there a way to get the drag distance or drag event data when using an IBAction? I tried @IBAction func

UITextView uncheck Selectable checkbox cause text issues in runtime

二次信任 提交于 2019-12-11 06:13:42
问题 Using text view in storyboard you can make it not editable or not selectable next to Behavior caption or vice versa: Seems options looks very promising and it works good for editable option. But when I uncheck selectable checkbox it cause some issues with font and text in runtime. So let's say that I set font to Helvetica-Bold and set color Red (which are not default settings for text view) and then uncheck selectable box like on image above. Next let me add some code to viewDidLoad: self

Can I use a UISearchController with a storyboard?

江枫思渺然 提交于 2019-12-11 04:45:03
问题 Is there a way to use UISearchController in a way that lets me storyboard the UISearchBar ? I have a storyboarded UI with a navigation bar which contains my search bar. It would be great if I could keep it this way because setting up the layout programmatically would be really inconvenient. I know the old UISearchDisplayController could be storyboarded. Is there a way to do something similar with UISearchController? 回答1: Add a UIView to your layout. That will be the container for your

How to connect Xcode Storyboard's “Simulated Metrics” toolbar to an actual IBOutlet UIToolbar?

早过忘川 提交于 2019-12-11 03:55:16
问题 I'm hitting issues when attempting to design a UIToolbar Accessory View via an Xcode Storyboard. When I drag a UIToolbar object to the top margin of my View Controller, the item is added to the left pane and I am able to connect it to my class's IBOutlets. It appears correctly when I run the app. However, the toolbar is not visible anywhere on the storyboard. I thus lose the visual editing benefits of using Interface Builder in the first place. The bar button items are only visible in the