当尝试在运行iOS 4.2.1的iPod上构建和安装应用程序时,我看到了错误
此应用程序不支持此设备的CPU类型
我正在尝试使用xcode 4.3以及xcode 4.4构建应用程序,并且仍然看到了这一点.是什么导致这种情况以及如何解决?
我需要在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) 我有一个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)