how to set a variable of a +class method
-
27-10-2019 - |
Question
I am passing a uitextfield string over to a class method (+) with that method I want to instantiate a NSString with the value from the textfield that will be used in another method in the same class. However because this method is (+) I cannot use an instance variable without throwing an error.
How can I grab that uitextfield string thats in the class methods parameter and give it t an instance method?
would creating another local method be a good idea? one that could be called in the class method or is their an easier way?
Solution
I am not exactly sure what you are trying to do, but it sounds like you are trying to do something that belongs in a controller instead.
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow