class GroupEntities: NSObject {
var name = String()
var noOfMembers = Int()
var isAdmin = Bool()
var isOpen = Bool()
}
在GroupEntities
课程中,如何通过名为UITableview
RJContactGroup
中访问此内容
答案 0 :(得分:0)
这样的事情:
class GroupEntities: NSObject {
var name = String()
var noOfMembers = Int()
var isAdmin = Bool()
var isOpen = Bool()
}
class MyTableViewController {
var rjContactGroup = GroupEntities()
func setProperties() {
rjContactGroup.name = "Test Name"
rjContactGroup.noOfMembers = 6
rjContactGroup.isAdmin = true
rjContactGroup.isOpen = true
}
}