资源简介
使用RunLoop优化tableView加载大量图片卡顿问题,可有效解决主线程阻塞问题
代码片段和文件信息
//
// AppDelegate.m
// LJRunLoopWork
//
// Created by LJ on 2017/2/10.
// Copyright © 2017年 LJ. All rights reserved.
//
#import “AppDelegate.h“
#import “ViewController.h“
@interface AppDelegate ()
@end
@implementation AppDelegate
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
// Override point for customization after application launch.
self.window = [[UIWindow alloc] initWithframe:[UIScreen mainScreen].bounds];
ViewController *viewController = [[ViewController alloc] init];
self.window.rootViewController = viewController;
[self.window makeKeyAndVisible];
return YES;
}
- (void)applicationWillResignActive:(UIApplication *)application {
// Sent when the application is about to move from active to inactive state. This can occur for certain types of temporary interruptions (such as an incoming phone call or SMS message) or when the user quits the application and it begins the transition to the background state.
// Use this method to pause ongoing tasks disable timers and invalidate graphics rendering callbacks. Games should use this method to pause the game.
}
- (void)applicationDidEnterBackground:(UIApplication *)application {
// Use this method to release shared resources save user data invalidate timers and store enough application state information to restore your application to its current state in case it is terminated later.
// If your application supports background execution this method is called instead of applicationWillTerminate: when the user quits.
}
- (void)applicationWillEnterForeground:(UIApplication *)application {
// Called as part of the transition from the background to the active state; here you can undo many of the changes made on entering the background.
}
- (void)applicationDidBecomeActive:(UIApplication *)application {
// Restart any tasks that were paused (or not yet started) while the application was inactive. If the application was previously in the background optionally refresh the user interface.
}
- (void)applicationWillTerminate:(UIApplication *)application {
// Called when the application is about to terminate. Save data if appropriate. See also applicationDidEnterBackground:.
}
@end
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
目录 0 2017-02-10 11:26 LJRunLoopWork\
文件 6148 2017-02-10 11:40 LJRunLoopWork\.DS_Store
目录 0 2017-02-10 11:40 __MACOSX\
目录 0 2017-02-10 11:40 __MACOSX\LJRunLoopWork\
文件 120 2017-02-10 11:40 __MACOSX\LJRunLoopWork\._.DS_Store
目录 0 2017-02-10 11:37 LJRunLoopWork\LJRunLoopWork\
文件 271 2017-02-10 11:37 LJRunLoopWork\LJRunLoopWork\AppDelegate.h
目录 0 2017-02-10 11:40 __MACOSX\LJRunLoopWork\LJRunLoopWork\
文件 344 2017-02-10 11:37 __MACOSX\LJRunLoopWork\LJRunLoopWork\._AppDelegate.h
文件 2314 2017-02-10 11:37 LJRunLoopWork\LJRunLoopWork\AppDelegate.m
文件 376 2017-02-10 11:37 __MACOSX\LJRunLoopWork\LJRunLoopWork\._AppDelegate.m
目录 0 2017-02-10 11:36 LJRunLoopWork\LJRunLoopWork\Assets.xcassets\
目录 0 2017-02-10 11:36 LJRunLoopWork\LJRunLoopWork\Assets.xcassets\AppIcon.appiconset\
文件 753 2017-02-10 11:36 LJRunLoopWork\LJRunLoopWork\Assets.xcassets\AppIcon.appiconset\Contents.json
目录 0 2017-02-10 10:24 LJRunLoopWork\LJRunLoopWork\ba
文件 1740 2017-02-10 09:26 LJRunLoopWork\LJRunLoopWork\ba
目录 0 2017-02-10 11:40 __MACOSX\LJRunLoopWork\LJRunLoopWork\ba
文件 171 2017-02-10 09:26 __MACOSX\LJRunLoopWork\LJRunLoopWork\ba
文件 1096 2017-02-10 10:24 LJRunLoopWork\LJRunLoopWork\Info.plist
文件 1092 2017-02-10 11:37 LJRunLoopWork\LJRunLoopWork\LJRunLoopWork.h
文件 568 2017-02-10 11:37 __MACOSX\LJRunLoopWork\LJRunLoopWork\._LJRunLoopWork.h
文件 4896 2017-02-10 11:37 LJRunLoopWork\LJRunLoopWork\LJRunLoopWork.m
文件 552 2017-02-10 11:37 __MACOSX\LJRunLoopWork\LJRunLoopWork\._LJRunLoopWork.m
文件 328 2017-02-10 11:37 LJRunLoopWork\LJRunLoopWork\main.m
文件 344 2017-02-10 11:37 __MACOSX\LJRunLoopWork\LJRunLoopWork\._main.m
文件 342543 2015-09-28 19:30 LJRunLoopWork\LJRunLoopWork\spaceship.jpg
文件 222 2015-09-28 19:30 __MACOSX\LJRunLoopWork\LJRunLoopWork\._spaceship.jpg
文件 316 2017-02-10 11:37 LJRunLoopWork\LJRunLoopWork\UITableViewCell_CellExtension.h
文件 424 2017-02-10 11:37 __MACOSX\LJRunLoopWork\LJRunLoopWork\._UITableViewCell_CellExtension.h
文件 602 2017-02-10 11:37 LJRunLoopWork\LJRunLoopWork\UITableViewCell_CellExtension.m
文件 408 2017-02-10 11:37 __MACOSX\LJRunLoopWork\LJRunLoopWork\._UITableViewCell_CellExtension.m
............此处省略28个文件信息
- 上一篇:电动航模计算器
- 下一篇:labview modbus
评论
共有 条评论