How do I call a custom init on a view controller instantiated from a Storyboard scene in interface builder?

j b

If I am using interface builder to manage storyboards for my app, how can I call a custom init selector when view / view controller instances are created?

For example if I have a view controller in a Storyboard scene, and its Custom Class is a UIViewController subclass, with a custom initialiser, such as initWithMediaType:, which takes an NSUInteger as an argument, how can I specify in Interface Builder that initWithMediaType:should be called, passing in a given argument?

rintaro

If you want to specify in Interface Builder, declare mediaType as a property in your UIViewController subclass, and use 'User Defined Runtime Attributes'.

screenshot

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

From Dev

Storyboard View Controller not instantiated?

From Dev

How to embed a custom view xib in a storyboard scene?

From Dev

how do i call SetRootViewController from a view controller using swift?

From Dev

How do I open a new storyboard from custom controller class in Xamarin.ios native app?

From Dev

Call view controller with xib from storyboard?

From Dev

How do I return to the first view controller on a storyboard?

From Dev

How do I call a method from a class that was not instantiated in Java?

From Dev

How do I call a method from a class that was not instantiated in Java?

From Dev

Accessing interface builder object from view controller

From Dev

Interface Builder runtime autolayout constraints preventing view from occupying intrinsic size, how do I fix this?

From Dev

swift - Initialize view controller from storyboard by overriding init

From Dev

swift - Initialize view controller from storyboard by overriding init

From Dev

How do I pass two parameters as XML to my controller class on Java Scene Builder?

From Dev

How do I call a function from another scene?

From Dev

How do i change iOS storyboard Interface Builder to show iPhone4 preview?

From Dev

How do i call a controller action from within my view using Razor?

From Dev

How do I initialize a custom view controller from within the class itself?

From Dev

Call view controller method from custom class

From Dev

How to pass data to view controller being instantiated from UIStoryboard?

From Dev

How to pass data to view controller being instantiated from UIStoryboard?

From Dev

How to pass data to table view controller being instantiated from UIStoryboard?

From Dev

Custom init for TableView from storyboard

From Dev

How do I present a view controller from UISearchViewController embedded in a child view controller of a parent view controller?

From Dev

How do I call a custom method from a button in a view to delete a file associated with an object? Rails app

From Dev

How can i call a controller method from view

From Dev

How can I call a method in one view controller from another?

From Dev

How can I call a view controller function from an iOS AppDelegate?

From Dev

How can I call a variable from a view to a controller?

From Dev

How do I handle a view controller in my Storyboard with two distinct layouts?

Related Related

  1. 1

    Storyboard View Controller not instantiated?

  2. 2

    How to embed a custom view xib in a storyboard scene?

  3. 3

    how do i call SetRootViewController from a view controller using swift?

  4. 4

    How do I open a new storyboard from custom controller class in Xamarin.ios native app?

  5. 5

    Call view controller with xib from storyboard?

  6. 6

    How do I return to the first view controller on a storyboard?

  7. 7

    How do I call a method from a class that was not instantiated in Java?

  8. 8

    How do I call a method from a class that was not instantiated in Java?

  9. 9

    Accessing interface builder object from view controller

  10. 10

    Interface Builder runtime autolayout constraints preventing view from occupying intrinsic size, how do I fix this?

  11. 11

    swift - Initialize view controller from storyboard by overriding init

  12. 12

    swift - Initialize view controller from storyboard by overriding init

  13. 13

    How do I pass two parameters as XML to my controller class on Java Scene Builder?

  14. 14

    How do I call a function from another scene?

  15. 15

    How do i change iOS storyboard Interface Builder to show iPhone4 preview?

  16. 16

    How do i call a controller action from within my view using Razor?

  17. 17

    How do I initialize a custom view controller from within the class itself?

  18. 18

    Call view controller method from custom class

  19. 19

    How to pass data to view controller being instantiated from UIStoryboard?

  20. 20

    How to pass data to view controller being instantiated from UIStoryboard?

  21. 21

    How to pass data to table view controller being instantiated from UIStoryboard?

  22. 22

    Custom init for TableView from storyboard

  23. 23

    How do I present a view controller from UISearchViewController embedded in a child view controller of a parent view controller?

  24. 24

    How do I call a custom method from a button in a view to delete a file associated with an object? Rails app

  25. 25

    How can i call a controller method from view

  26. 26

    How can I call a method in one view controller from another?

  27. 27

    How can I call a view controller function from an iOS AppDelegate?

  28. 28

    How can I call a variable from a view to a controller?

  29. 29

    How do I handle a view controller in my Storyboard with two distinct layouts?

HotTag

Archive