ios :: UITableView
ios :: UITableView :: data_source=
Wraps:self.dataSource =
ios :: UITableView :: defaultinit
ios :: UITableView :: dequeue_reusable_cell_with_identifier
Wraps:[self dequeueReusableCellWithIdentifier]
ios :: UITableView :: new
Wraps:[self initWithFrame:(CGRect)frame style:(UITableViewStyle)style]
ios $ UITableView :: SELF
Type of this instance, automatically specialized in every classcore :: Pointer :: address_is_null
Is the address behind this Object at NULL?ios :: UIView :: background_color=
Wraps:UIView.backgroundColor =
core :: Object :: class_factory
Implementation used byget_class
to create the specific class.
ios :: UITableView :: data_source=
Wraps:self.dataSource =
ios :: UITableView :: defaultinit
core :: Pointer :: defaultinit
core :: Object :: defaultinit
ios :: UIView :: defaultinit
cocoa :: NSObject :: defaultinit
ios :: UITableView :: dequeue_reusable_cell_with_identifier
Wraps:[self dequeueReusableCellWithIdentifier]
core :: Object :: is_same_instance
Return true ifself
and other
are the same instance (i.e. same identity).
core :: Object :: is_same_serialized
Isself
the same as other
in a serialization context?
core :: Object :: is_same_type
Return true ifself
and other
have the same dynamic type.
ios :: UITableView :: new
Wraps:[self initWithFrame:(CGRect)frame style:(UITableViewStyle)style]
core :: Object :: output_class_name
Display class name on stdout (debug only).ios :: UIView :: set_bounds
Wraps:UIView.bounds =
ios :: UIView :: translates_autoresizing_mask_into_constraits=
Wraps:UIView.translatesAutoresizingMaskIntoConstraints =
ios :: UIView :: user_interaction_enabled=
Wraps:UIView.userInteractionEnabled =
# View to display and edit hierarchical lists of information
extern class UITableView in "ObjC" `{ UITableView * `}
super UIView
# Wraps: `[self initWithFrame:(CGRect)frame style:(UITableViewStyle)style]`
new (style: UITableViewStyle) in "ObjC" `{
return [[UITableView alloc] initWithFrame: [[UIScreen mainScreen] bounds] style:style];
`}
# Wraps: `[self reloadData]`
fun reload_data in "ObjC" `{ [self reloadData]; `}
# Wraps: `self.autoresizingMask =`
fun autoresizing_mask in "ObjC" `{
self.autoresizingMask = UIViewAutoresizingFlexibleHeight|UIViewAutoresizingFlexibleWidth;
`}
# Wraps: `self.delegate =`
fun delegate=(delegate: UITableViewDelegate) in "ObjC" `{ self.delegate = delegate; `}
# Wraps: `self.dataSource =`
fun data_source=(source: UITableViewDataSource) in "ObjC" `{ self.dataSource = source; `}
# Wraps: `[self dequeueReusableCellWithIdentifier]`
fun dequeue_reusable_cell_with_identifier(identifier: NSString): UITableViewCell in "ObjC" `{
return [self dequeueReusableCellWithIdentifier:identifier];
`}
end
lib/ios/ui/uikit.nit:584,1--611,3
redef class UITableView
# Assign `list_view` as `delegate` and `dataSource`, and pin all references in both GCs
private fun assign_delegate_and_data_source(list_view: TableView)
import TableView.number_of_sections_in_table_view,
TableView.number_of_rows_in_section,
TableView.title_for_header_in_section,
TableView.cell_for_row_at_index_path in "ObjC" `{
UITableViewAndDataSource *objc_delegate = [[UITableViewAndDataSource alloc] init];
objc_delegate = (__bridge UITableViewAndDataSource*)CFBridgingRetain(objc_delegate);
objc_delegate.nit_list_layout = list_view;
TableView_incr_ref(list_view);
// Set our
self.delegate = objc_delegate;
self.dataSource = objc_delegate;
`}
end
lib/ios/ui/ui.nit:598,1--617,3