代码拉取完成,页面将自动刷新
同步操作将从 ShrekerNil/QLCodeSnippets 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>IDECodeSnippetCompletionPrefix</key>
<string>OCInitQLViewController</string>
<key>IDECodeSnippetCompletionScopes</key>
<array>
<string>ClassImplementation</string>
</array>
<key>IDECodeSnippetContents</key>
<string>{
NSArray *_arrTitles;
NSDictionary *_dicControllerNames;
}
- (void)viewDidLoad {
[super viewDidLoad];
[self loadDefaultSetting];
}
#pragma mark - Load default UI and Data
- (void)loadDefaultSetting {
_arrTitles = @[<#object#>, <#object#>];
_dicControllerNames = @{@"<#string#>": <#object#>,
@"<#string#>": <#object#>};
}
#pragma mark - UITableViewDataSource, UITableViewDelegate
- (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section {
return _arrTitles.count;
}
- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath {
static NSString *strId = @"cellStyle1";
UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:strId];
if (!cell) {
cell = [[UITableViewCell alloc] initWithStyle:UITableViewCellStyleDefault reuseIdentifier:strId];
}
cell.textLabel.text = _arrTitles[indexPath.row];
return cell;
}
- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath {
[tableView deselectRowAtIndexPath:indexPath animated:YES];
NSString *strTitle = _arrTitles[indexPath.row];
Class cls = NSClassFromString(_dicControllerNames[strTitle]);
UIViewController *viewController = [cls new];
viewController.title = strTitle;
[self.navigationController pushViewController:viewController animated:YES];
}</string>
<key>IDECodeSnippetIdentifier</key>
<string>FDFBBB79-C9D2-482D-9C7B-61AA21BE30ED</string>
<key>IDECodeSnippetLanguage</key>
<string>Xcode.SourceCodeLanguage.Objective-C</string>
<key>IDECodeSnippetSummary</key>
<string>初始化表格展现的TableView</string>
<key>IDECodeSnippetTitle</key>
<string>OCInitQLViewController</string>
<key>IDECodeSnippetUserSnippet</key>
<true/>
<key>IDECodeSnippetVersion</key>
<integer>2</integer>
</dict>
</plist>
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。