connect button to TableViewController in xcode

后端 未结 5 1032
悲&欢浪女
悲&欢浪女 2020-12-07 00:19

I have a button in my view controller and I want to connect my button to table view controller (It means that when I click on button it loads and brings my table)

bu

5条回答
  •  春和景丽
    2020-12-07 00:31

    as you said storyboard :

    First go through the iphone story board and create your view then add your button

    after that

    • drag and drap your table view
    • connect your button to the table view with module -click on table and from the menu choose-->editor-->embed in --> and add Navigation controller

    with this process you can easily have your GUI demo without writing the code and then you should create the TableViewController file and add your code ,

    just don't forget --> when you finished the GUI part and code, you should add createViewController class to your GUI via object in custom class.

    hope this helps!

提交回复
热议问题