iosswiftuitableviewalbumart

How can we create custom view over UITableViewController in Swift (StoryBoard)?


I am using a UITableViewController for create an album in my iOS application. Now i want to create a custom view over the UITableViewController. The view must have two button for MOVE and DELETE. how can I achieve this scenario in swift? is it possible to design the custom view in storyboard?


Solution

  • Try to drag a normal view and put on the top of your UITableView enter image description here

    It will seen like this

    enter image description here

    You can set an IBOutlet to it. Set its frame. Add buttons and add it to your view like any other views

    self.view.addSubview(THIS_VIEW)