WWDC22 SALE: Save 50% on all my Swift books and bundles! >>

day 16- designing our interface, autocomplete not working with "numberof.."

Forums > 100 Days of Swift

Extracted from lesson: -----** Let’s start with the method that sets how many rows should appear in the table. Add this code just after the end of viewDidLoad() – if you start typing “numberof” then you can use Xcode’s code completion to do most of the work for you:

override func tableView(_ tableView: UITableView, numberOfRowsInSection section: Int) -> Int {
    return pictures.count

Hi, Xcode does not autio complete when i start typing "numberof". and i scrolled through the list of recommendations when i type "override func tableView" to auto complete the parameters inside the parenthesis, but I dont see any func inside the list that has same argument data type and return value as shown in above code.

Why is it not auto-completing?


Hacking with Swift is sponsored by Emerge

SPONSORED Optimize your app’s startup time, binary size, and overall performance using Emerge’s advanced app optimization and monitoring tools. Reliably measure app size, speed up your app's startup time with Emerge's Launch Booster, and much more. Emerge is actively used by many of the top mobile development teams in the world.

Find out more

Sponsor Hacking with Swift and reach the world's largest Swift community!

Reply to this topic…

You need to create an account or log in to reply.

All interactions here are governed by our code of conduct.

Unknown user

You are not logged in

Log in or create account

Link copied to your pasteboard.