Cell folding, cell folding
:
Engineering Drawing:
Introduce the third-party library QQView in the code.
Code:
AppDelegate. h
# Import <UIKit/UIKit. h> // Add the header file # import "myQQView. h "@ interface AppDelegate: UIResponder <UIApplicationDelegate> {myQQView * qqview;} @ property (strong, nonatomic) UIWindow * window; @ end
AppDelegate. m
# Import "AppDelegate. h "@ implementation AppDelegate-(BOOL) application :( UIApplication *) application didfinishlaunchingwitexceptions :( NSDictionary *) launchOptions {self. window = [[UIWindow alloc] initWithFrame: [[UIScreen mainScreen] bounds]; // Override point for customization after application launch. // cell folding qqview = [[myQQView alloc] init]; [self. window addSubview: qqview. view]; self. window. backgroundColor = [UIColor whiteColor]; [self. window makeKeyAndVisible]; return YES ;}