swift3

Xcode - How can i programmatically embed/change view controller within a container view?

冷暖自知 提交于 2020-05-09 21:48:30
问题 I am trying to programmatically set / or change the embedded View Controller inside a Controller View . I have 3 different View Controllers, that I would like to show in the Container View, all depending on if the user is logged in or not. I have looked around and tried a bunch of code, I found one that worked, but the code changed the self view, and not the view containers view. A lot of the code I have tried have also not been in Swift 3, so as a new app developer, this has been quite

iOS April30 (extended to June30) 2020 Requirements — iOS 13 SDK, All-Screen Design, Launch Storyboard, Swift3

僤鯓⒐⒋嵵緔 提交于 2020-04-14 07:24:30
问题 April2020 Update As of April/2/2020 and due to COVID-19 pandemic, Apple extended the deadline for the new guidelines that enforces iOS13 and Swift 4.x from April 30 to June 30 of 2020. This was announced on their developer website. Important Apple is deprecating Swift 3.x, codebases written in Swift 3.x must be updated to (at least) Swift 4.x. It is not possible to deploy to AppStore from a Swift 3.x project starting April 2020. See Edit #1 & Edit #2 for explanation. According to this update

iOS Swift how to debug SIGABRT :“fatal error: call of deleted method” from a CocoaPod?

丶灬走出姿态 提交于 2020-04-12 08:24:19
问题 I have an app which uses SlideMenuControllerSwift. I've modified some code to see how to present different panels, then rolled back my changes. When running the project I get SIGABRT fatal error: call of deleted method in console when SlideMenuControllerSwift is initializing. No other error messages are given. The project's source control appears to be in exactly the same state as before changes. I did a "clean" Reinstalled pods. Deleted pods directory and made a clean install Deleted app

iOS Swift how to debug SIGABRT :“fatal error: call of deleted method” from a CocoaPod?

大城市里の小女人 提交于 2020-04-12 08:20:36
问题 I have an app which uses SlideMenuControllerSwift. I've modified some code to see how to present different panels, then rolled back my changes. When running the project I get SIGABRT fatal error: call of deleted method in console when SlideMenuControllerSwift is initializing. No other error messages are given. The project's source control appears to be in exactly the same state as before changes. I did a "clean" Reinstalled pods. Deleted pods directory and made a clean install Deleted app

iOS Swift how to debug SIGABRT :“fatal error: call of deleted method” from a CocoaPod?

為{幸葍}努か 提交于 2020-04-12 08:18:27
问题 I have an app which uses SlideMenuControllerSwift. I've modified some code to see how to present different panels, then rolled back my changes. When running the project I get SIGABRT fatal error: call of deleted method in console when SlideMenuControllerSwift is initializing. No other error messages are given. The project's source control appears to be in exactly the same state as before changes. I did a "clean" Reinstalled pods. Deleted pods directory and made a clean install Deleted app

Material Components - Text Field - IOS

谁说我不能喝 提交于 2020-04-10 00:25:47
问题 I'm newbie to swift programming, i need to design the login page with floating placeholder input. I have installed the MDCTextInput using POD. added import import MaterialComponents.MaterialTextFields and in viewDidLoad() below code added, companyID.placeholder = "Company ID" companyID.placeholderLabel.highlightedTextColor = UIColor.white companyID.placeholderLabel.textColor = UIColor.white companyID.underline?.color = UIColor.white companyID.delegate = self i have followed the steps given in

Material Components - Text Field - IOS

十年热恋 提交于 2020-04-10 00:25:14
问题 I'm newbie to swift programming, i need to design the login page with floating placeholder input. I have installed the MDCTextInput using POD. added import import MaterialComponents.MaterialTextFields and in viewDidLoad() below code added, companyID.placeholder = "Company ID" companyID.placeholderLabel.highlightedTextColor = UIColor.white companyID.placeholderLabel.textColor = UIColor.white companyID.underline?.color = UIColor.white companyID.delegate = self i have followed the steps given in

How to open Specific View controller on Widgets/ Today Extension click

为君一笑 提交于 2020-04-08 07:57:09
问题 I am trying to open specific view controller on widgets click , but can not able to open it , i am able to open app using url schema but i want to open specific view controller how can i do this, here is code for open app using url schema : @IBAction func open_app(_ sender: Any) { extensionContext?.open(URL(string: "open://")! , completionHandler: nil) } on button click i am opeing app sucessfully using url schema. but now i want to open specific view controller on that click how can i do

How to open Specific View controller on Widgets/ Today Extension click

柔情痞子 提交于 2020-04-08 07:53:13
问题 I am trying to open specific view controller on widgets click , but can not able to open it , i am able to open app using url schema but i want to open specific view controller how can i do this, here is code for open app using url schema : @IBAction func open_app(_ sender: Any) { extensionContext?.open(URL(string: "open://")! , completionHandler: nil) } on button click i am opeing app sucessfully using url schema. but now i want to open specific view controller on that click how can i do

Swift - UI Button Shadow Gradient

筅森魡賤 提交于 2020-04-07 16:52:37
问题 I am trying to recreate a button like this in Swift: I have been able to create the gradient inside of the button accurately from Sketch using the help from here: Answered Question Now I am trying to recreate the glow effect behind the button. I was thinking creating a subview behind it and using a gaussian blur filter to draw it. Now I am stuck in how to implement this, and haven't found a good solution. The normal CALayer shadow doesn't work with gradients, and I am lost. Any help is