ios - Sections in WKInterfaceTable -
i trying create table sections having varying number of rows. saw solution given here how create sections in wkinterfacetable , tried follows:
tableview.setrowtypes(rowtypes); q in 0...rowtypes.count-1 { if (rowtypes[q] == "teamsection") { let row = tableview.rowcontrolleratindex(q) as? teamsection; } else { let row = tableview.rowcontrolleratindex(q) as? teamrow; } }
i have rowtypes
follows:
let rowtypes = ["teamsection", "teamrow", "teamsection", "teamrow", "teamrow", "teamrow", "teamrow", "teamrow", "teamrow", "teamrow", "teamrow"];
i expecting 11 rows getting 9 of teamrow
type , none of teamsection
. can spot doing wrong?
it looks teamsection
isn't valid row type. sure you've set table in storyboard 2 rows , set identifier correctly 1 of them "teamsection"?
Comments
Post a Comment