资源简介

模仿网易新闻首页效果代码,实现界面上部的分类条滚动以及选择

资源截图

代码片段和文件信息

//
//  AppDelegate.m
//  SlideView
//
//  Created by Chen Yaoqiang on 13-12-27.
//  Copyright (c) 2013年 Chen Yaoqiang. All rights reserved.
//

#import “AppDelegate.h“

#import “SVGloble.h“

@implementation AppDelegate

- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
{
    self.window = [[UIWindow alloc] initWithframe:[[UIScreen mainScreen] bounds]];
    // Override point for customization after application launch.
    self.window.backgroundColor = [UIColor whiteColor];
    
    CGRect screenRect = [[UIScreen mainScreen] bounds];
    [SVGloble shareInstance].globleWidth = screenRect.size.width; //屏幕宽度
    [SVGloble shareInstance].globleHeight = screenRect.size.height-20;  //屏幕高度(无顶栏)
    [SVGloble shareInstance].globleAllHeight = screenRect.size.height;  //屏幕高度(有顶栏)
    
    _viewController = [[TestViewController alloc] init];
    [self.window setRootViewController:_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 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  2014-02-21 22:43  SlideView-master\
     文件        6148  2014-02-21 22:43  SlideView-master\.DS_Store
     目录           0  2014-02-21 22:51  __MACOSX\
     目录           0  2014-02-21 22:51  __MACOSX\SlideView-master\
     文件         120  2014-02-21 22:43  __MACOSX\SlideView-master\._.DS_Store
     文件         237  2013-12-27 00:10  SlideView-master\.gitignore
     文件         212  2013-12-27 00:10  __MACOSX\SlideView-master\._.gitignore
     文件         350  2013-12-27 00:10  SlideView-master\README.md
     文件         212  2013-12-27 00:10  __MACOSX\SlideView-master\._README.md
     目录           0  2014-02-21 22:43  SlideView-master\SlideView\
     文件        6148  2014-02-21 22:43  SlideView-master\SlideView\.DS_Store
     目录           0  2014-02-21 22:51  __MACOSX\SlideView-master\SlideView\
     文件         120  2014-02-21 22:43  __MACOSX\SlideView-master\SlideView\._.DS_Store
     目录           0  2013-12-27 00:10  SlideView-master\SlideView\SlideView\
     文件         383  2013-12-27 00:10  SlideView-master\SlideView\SlideView\AppDelegate.h
     目录           0  2014-02-21 22:51  __MACOSX\SlideView-master\SlideView\SlideView\
     文件         212  2013-12-27 00:10  __MACOSX\SlideView-master\SlideView\SlideView\._AppDelegate.h
     文件        2678  2013-12-27 00:10  SlideView-master\SlideView\SlideView\AppDelegate.m
     文件         212  2013-12-27 00:10  __MACOSX\SlideView-master\SlideView\SlideView\._AppDelegate.m
     目录           0  2013-12-27 00:10  SlideView-master\SlideView\SlideView\Classes\
     文件         584  2013-12-27 00:10  SlideView-master\SlideView\SlideView\Classes\SVGloble.h
     目录           0  2014-02-21 22:51  __MACOSX\SlideView-master\SlideView\SlideView\Classes\
     文件         212  2013-12-27 00:10  __MACOSX\SlideView-master\SlideView\SlideView\Classes\._SVGloble.h
     文件        1124  2013-12-27 00:10  SlideView-master\SlideView\SlideView\Classes\SVGloble.m
     文件         212  2013-12-27 00:10  __MACOSX\SlideView-master\SlideView\SlideView\Classes\._SVGloble.m
     文件         500  2013-12-27 00:10  SlideView-master\SlideView\SlideView\Classes\SVRootScrollView.h
     文件         212  2013-12-27 00:10  __MACOSX\SlideView-master\SlideView\SlideView\Classes\._SVRootScrollView.h
     文件        3166  2013-12-27 00:10  SlideView-master\SlideView\SlideView\Classes\SVRootScrollView.m
     文件         212  2013-12-27 00:10  __MACOSX\SlideView-master\SlideView\SlideView\Classes\._SVRootScrollView.m
     文件        1016  2013-12-27 00:10  SlideView-master\SlideView\SlideView\Classes\SVTopScrollView.h
     文件         212  2013-12-27 00:10  __MACOSX\SlideView-master\SlideView\SlideView\Classes\._SVTopScrollView.h
............此处省略68个文件信息

评论

共有 条评论