资源简介
类似QQ侧滑菜单,侧滑手势独立封装,只需要主视图侧滑的主视图控制器 继承即可实现,有缩小放大效果,有平移效果。代码有详细注释。
代码片段和文件信息
//
// AppDelegate.m
// Sideslip
//
// Created by HeartDoc on 16/6/2.
// Copyright © 2016年 songjingpei. All rights reserved.
//
#import “AppDelegate.h“
#import “MainViewController.h“
@interface AppDelegate ()
@end
@implementation AppDelegate
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
self.window = [[UIWindow alloc] initWithframe:[[UIScreen mainScreen] bounds]];
MainViewController * main = [[MainViewController alloc]initWithNibName:@“MainViewController“ bundle:nil];
UINavigationController * nav = [[UINavigationController alloc]initWithRootViewController:main ];
self.window.rootViewController = nav;
[[UIApplication sharedApplication] setStatusBarHidden:NO];
[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 throttle down OpenGL ES frame rates. 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 inactive 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 2016-06-02 16:20 Sideslip\
文件 6148 2016-06-02 16:20 Sideslip\.DS_Store
目录 0 2016-06-03 17:30 __MACOSX\
目录 0 2016-06-03 17:30 __MACOSX\Sideslip\
文件 120 2016-06-02 16:20 __MACOSX\Sideslip\._.DS_Store
目录 0 2016-06-03 17:27 Sideslip\.git\
文件 15 2016-06-02 15:33 Sideslip\.git\COMMIT_EDITMSG
文件 144 2016-06-02 15:33 Sideslip\.git\config
文件 73 2016-06-02 15:33 Sideslip\.git\desc
文件 23 2016-06-02 15:33 Sideslip\.git\HEAD
目录 0 2016-06-02 15:33 Sideslip\.git\hooks\
文件 177 2016-06-02 15:33 Sideslip\.git\hooks\README.sample
文件 3691 2016-06-03 17:16 Sideslip\.git\index
目录 0 2016-06-02 15:33 Sideslip\.git\info\
文件 40 2016-06-02 15:33 Sideslip\.git\info\exclude
目录 0 2016-06-03 17:30 __MACOSX\Sideslip\.git\
目录 0 2016-06-03 17:30 __MACOSX\Sideslip\.git\info\
文件 171 2016-06-02 15:33 __MACOSX\Sideslip\.git\info\._exclude
目录 0 2016-06-02 15:33 Sideslip\.git\logs\
文件 172 2016-06-02 15:33 Sideslip\.git\logs\HEAD
目录 0 2016-06-02 15:33 Sideslip\.git\logs\refs\
目录 0 2016-06-02 15:33 Sideslip\.git\logs\refs\heads\
文件 172 2016-06-02 15:33 Sideslip\.git\logs\refs\heads\master
目录 0 2016-06-03 17:16 Sideslip\.git\ob
目录 0 2016-06-03 10:36 Sideslip\.git\ob
文件 857 2016-06-03 10:36 Sideslip\.git\ob
目录 0 2016-06-02 16:13 Sideslip\.git\ob
文件 137 2016-06-02 15:33 Sideslip\.git\ob
文件 1903 2016-06-02 16:13 Sideslip\.git\ob
目录 0 2016-06-02 15:36 Sideslip\.git\ob
文件 272 2016-06-02 15:36 Sideslip\.git\ob
............此处省略177个文件信息
- 上一篇:噪声生成c程序
- 下一篇:AD835中文资料及应用
评论
共有 条评论