- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath
{
static NSString *CellIdentifier = @"Cell";
UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:CellIdentifier];
if (cell == nil) {
CGRect contentFrame = CGRectMake(42, 7, 245, 30);
UILabel *contentLabel = [[UILabel alloc] initWithFrame:contentFrame];
我看到在很多地方上面的代码,我想知道,有什么的代码块的来源是什么?当我使用GUI做一些事情时,xcode可以自动创建它吗?UITableViewCell自动创建的代码?
如果不是,约CGRectMake(42, 7, 245, 30)
如何设置这些数字没有计算像素是什么?
感谢
你知道'UITableViewCell'吗? – vishy
我知道这个类,但我不明白为什么每个源代码在线获得上述代码。从哪里来? – Segev
笏你的意思是在网上,我看到第一次在乌拉圭回合后.. – vishy