小编Nis*_*n29的帖子

为什么我看到"此应用程序不支持此设备的CPU类型"?

当尝试在运行iOS 4.2.1的iPod上构建和安装应用程序时,我看到了错误

此应用程序不支持此设备的CPU类型

我正在尝试使用xcode 4.3以及xcode 4.4构建应用程序,并且仍然看到了这一点.是什么导致这种情况以及如何解决?

iphone ios

22
推荐指数
3
解决办法
2万
查看次数

从发布版本中删除NSLog

可能重复:
是否应该在生产代码上使用NSLog()?
在发布应用程序之前是否需要禁用NSLog?

我需要在Release版本中删除项目中存在的所有NSLOG.我已经尝试使用下面的代码,但仍然通过手机访问构建,仍然NSLOG显示在控制台中.

#ifdef DEBUG
#define debug_NSLog(format, ...) NSLog(format, ## __VA_ARGS__)
#else
#define debug_NSLog(format, ...)
#endif
Run Code Online (Sandbox Code Playgroud)

xcode objective-c ios

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

当UITableview向上或向下滚动时,值会更改

我有一个UITableview,它有一些历史.我使用自定义单元格来处理标签,图像和按钮的显示.里面大约有50排UITableview.但问题是当Tableview向上滚动时,第一个显示的行下面的行的值已经改变了.不确定Tableview究竟发生了什么.

static NSString *CellIdentifier = @"HistoryCell";
cellHistory = [self.notificationTableView dequeueReusableCellWithIdentifier:CellIdentifier forIndexPath:indexPath];

[cellHistory.label clearActionDictionary];
//Step 2: Define a selection handler block
void(^handler)(FRHyperLabel *label, NSString *substring) = ^(FRHyperLabel *label, NSString *substring)
{
    [self userNameTapped:[[[[self.arrayHistory objectAtIndex:indexPath.row] objectForKey:Details] objectForKey:@"key"] objectForKey:@"key"]];
};

//Step 3: Add link substrings
[cellHistory.label setLinksForSubstrings:@[userName] withLinkHandler:handler];
return cellHistory;
Run Code Online (Sandbox Code Playgroud)

iphone objective-c uitableview ios ios9

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

标签 统计

ios ×3

iphone ×2

objective-c ×2

ios9 ×1

uitableview ×1

xcode ×1