storyboard

Change UIButton BorderColor in Storyboard

让人想犯罪 __ 提交于 2019-12-17 17:26:37
问题 I Set CornerRadius and BorderWidth for UIbutton in User Defined Runtime Attributes. Without adding layer.borderColor it works Well and Display border in black color. But when add layer.borderColor does not work(does not show border). 回答1: For Swift: Swift 3: extension UIView { @IBInspectable var cornerRadius: CGFloat { get { return layer.cornerRadius } set { layer.cornerRadius = newValue layer.masksToBounds = newValue > 0 } } @IBInspectable var borderWidth: CGFloat { get { return layer

Are storyboards going to work on ios 4?

雨燕双飞 提交于 2019-12-17 16:42:14
问题 Storyboards are new features in xcode 4.2 which simplify navigation design. I assume new apps using storyboards are going to be working just fine on iOS 5 when it ships but I haven't seen anything about storyboards compatibility with iOS 4. It makes sense that they would work (just like ARC is supposed to be going to work - they are a compiler / IDE feature, not runtime features AFAIK) but that's just me guessing, does anyone know if it's safe to use storyboards and be able to ship for iOS 4?

Autoresizing issue in Xcode 8

∥☆過路亽.° 提交于 2019-12-17 15:54:13
问题 === EDIT ======== This issue is now solved in Xcode 8.1 . I have checked. ================ I don't know auto-layout properly. So, I am using autoresizing option in my all apps and it's fine for me. I am able to fulfill my all requirements by this without any issue. Now in Xcode 8, I have migrated my old swift project to swift 3. Now issue arises. See in image, I have set Autoresizing, and its working fine without issue in all devices until now and this project is live in AppStore, so that I

How to add a footer to a UITableView in Storyboard

我们两清 提交于 2019-12-17 15:34:57
问题 I'm fairly new to iOS development. I want to add a footer to the table view in a UITableViewController . I've made the view I want to use as the footer graphically in Storyboard, however I can't work out how to hook it up as the footer to my table view. I can add a footer programmatically in UITableViewController 's viewDidLoad method by assigning self.tableView.tableFooterView . But I've created my footer view in Storyboard, what is the best practice way of adding it as the footer to my

Add subview from a xib or another scene with storyboard

守給你的承諾、 提交于 2019-12-17 15:27:53
问题 I'm new to iOS and Xcode. I can't figure out how to design a separated view and make it be added into the main UIViewController using storyboard. I did different approaches.. Just grab an UI object from right-bottom corner window in the xcode, and then put it onto any space area of storyboard. But I can't drop the UI object like the way with xib. Add a new UIViewController. Add a view into the UIViewController . In the main ViewController.m, I get the new UIViewController instance in the

Add subview from a xib or another scene with storyboard

南笙酒味 提交于 2019-12-17 15:26:23
问题 I'm new to iOS and Xcode. I can't figure out how to design a separated view and make it be added into the main UIViewController using storyboard. I did different approaches.. Just grab an UI object from right-bottom corner window in the xcode, and then put it onto any space area of storyboard. But I can't drop the UI object like the way with xib. Add a new UIViewController. Add a view into the UIViewController . In the main ViewController.m, I get the new UIViewController instance in the

Marking some XIB/Storyboard strings as not localizable

淺唱寂寞╮ 提交于 2019-12-17 12:15:33
问题 I am using Base Internationalization for XIB/Storyboard files and the "Export for Localization" method using XLIFF files for translators. I have some labels, buttons, etc. that have text that should be translated, but I also have labels where we use some placeholder text (like a full-name) so you can see what the view would look like when populated with data, but those labels always have their text come from an outlet programmatically. Is there some way to mark this label's .text property

Can't Load UIViewController XIB file in Storyboard in Swift

倖福魔咒の 提交于 2019-12-17 10:41:28
问题 I've read Using XCode storyboard to instantiate view controller that uses XIB for its design but I'm having troubles making this work in Swift (Using Xcode 6 Beta 6). I'm wondering if I've done something wrong or if this functionality isn't available anymore? I created a simple repository, https://github.com/jer-k/StoryboardTesting-Swift, that showcases the above approach. I managed to solve the issue by adding and override to init required init(coder aDecoder: NSCoder) { super.init(nibName:

Changing view controller when Segmented Control changes

早过忘川 提交于 2019-12-17 10:29:25
问题 This problem is driving me crazy. I'm trying to change the viewController when the user changes the selected "tab" of the segmented control. I've spent a couple hours researching and haven't been able to find an answer that works or is done through storyboard. It really bother me since setting a tab application is so easy, but trying to use the segmented control like the tab application is just not working. I already know how to detect which index is selected in the segmented control. How can

iOS storyboard passing data navigationViewController

别等时光非礼了梦想. 提交于 2019-12-17 10:26:18
问题 I have problem with proper passing data between view's but not in standard way. Picture describing my problem: I performSegueWithIdentifier with one of two segue identifiers and then in I want to pass data to ViewController called "Firmy" or "Oddzialy". Passing data code: - (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender { if ([[segue identifier] isEqualToString:@"sLogowanieFirmy"]) { FirmyVC *firmyVC = [segue destinationViewController]; firmyVC.tabFirmy = self.tabFirmy; }