小编kin*_*ran的帖子

xcode项目出错:ld:找不到-lcrt1.10.6.o的库

刚刚升级到Snow Leopard,安装了Xcode 3.2,然后安装了适用于SL的iPhone SDK 3.

在一个项目中,我现在在构建时遇到以下错误:

ld:未找到库 -lcrt1.10.6.o

我在网上搜索过,但没有找到任何帮助.

iphone xcode compiler-errors osx-snow-leopard

26
推荐指数
4
解决办法
7万
查看次数

计算iOS中的电池寿命

想知道是否有超出Apple技术统计数据的参考来计算电池寿命.我已经尝试比较一些现有的电池应用程序(电池剩余电量%*Apple的数字),有时我也没有提出相同的答案.还有使用2G电池(而不是3G)的统计数据,我在Apple上看不到2G电池续航时间.

当然,有些应用程序声称它们"最准确"......但除非有人拥有非常准确的统计数据源,否则我不会发现这种情况.

battery objective-c ios

2
推荐指数
1
解决办法
8013
查看次数

尝试使用CGRect时出现语法错误

我正在尝试将子视图添加到tableview单元格中,当然也使用CGRect作为其中的一部分.但是,我在构建时遇到语法错误:

- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath {

static NSString *CellIdentifier = @"Cell";

UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:CellIdentifier];
if (cell == nil) {
    switch (indexPath.section) {
        case 1:
            CGRect <<- SYNTAX ERROR cellFrame = CGRectMake(0, 0, 300, 65);
            cell = [[[UITableViewCell alloc] initWithFrame:cellFrame reuseIdentifier: CellIdentifier] autorelease];

            CGRect infoRect = CGRectMake(0, 5, 295, 55);
            UILabel *infoLabel = [[UILabel alloc] initWithFrame:infoRect];
            infoLabel.tag = 1;
            [cell.contentView addSubview:infoLabel];
            [infoLabel release];
            break;
        default:
            break;
    }
    cell = [[[UITableViewCell alloc] initWithFrame:CGRectZero reuseIdentifier:CellIdentifier] autorelease];
}
Run Code Online (Sandbox Code Playgroud)

我试过右键单击框架 - …

iphone objective-c

0
推荐指数
1
解决办法
1634
查看次数