Hello world
Hello world

Reputation: 353

Does iOS storyboard have a feature equivalent to tools:text in android?

I've just moved from android to iOS with swift.

android provides tools namespace that supports this kind of requirement. I just use tools:text="fake string" so that the string only appears on the IDE screen.

When it comes to iOS storyboard, while I'm drawing layout with storyboard, one question is remaining in my mind. Can I have a fake string that only appears on the storyboard but not on iOS screen?

Please let me know if I can use the same feature in iOS programming.

Upvotes: 8

Views: 537

Answers (1)

Anil Varghese
Anil Varghese

Reputation: 42977

No, there is no fake text available. The text which you are setting in storyboard for a label will display while you are running the application. You can create reset/change this text in viewDidLoad of the corresponding view controller by creating an outlet of the label. Like

self.label.text = "New text"

Upvotes: 2

Related Questions