当我调用[tableView reloadData]函数时- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath没有被解雇?为什么?
这是我的TableView.m
@implementation TableView
@synthesize managedObjectContext;
@synthesize controller = _controller;
@synthesize tableView = _tableView;
- (id)initWithFrame:(CGRect)frame
{
self = [super initWithFrame:frame];
if (self) {
}
return self;
}
-(id)init
{
self = [super init];
if (self) {
NSLog(@"%s",__PRETTY_FUNCTION__);
self.del = [[UIApplication sharedApplication] delegate];
self.managedObjectContext = self.del.managedObjectContext;
[self performControllerFetch];
}
return self;
}
#pragma mark - Table view data source
- (NSInteger)numberOfSectionsInTableView:(UITableView *)tableView
{
...
}
- (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section …Run Code Online (Sandbox Code Playgroud) 例如,在iOS 设置> Wi-Fi中,单元格的复选标记位于左侧(已连接网络),右侧是显示按钮.
我需要这个.iOS 7中是否有标准的方法来获取此功能?
当我的应用程序在我的iPhone上运行背景超过2小时时,我遇到了问题,然后在Xcode中经常出现错误"终止由于内存压力".我可以做什么,我的应用程序在后台运行没有问题?这是仪器的截图:
