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

Popular posts from this blog

c++ - Delete matches in OpenCV (Keypoints and descriptors) -

java - Could not locate OpenAL library -

sorting - opencl Bitonic sort with 64 bits keys -