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?

Was it helpful?

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
scroll top