• 大小: 345KB
    文件类型: .zip
    金币: 1
    下载: 0 次
    发布日期: 2021-05-14
  • 语言: 其他
  • 标签:

资源简介

一款简单优雅的日历控件 支持左右无限滑动切换月份 支持点击头部返回至当前月份 点击每个日子可以触发回调事件 回调使用 block,轻量又简单

资源截图

代码片段和文件信息

//
//  AppDelegate.m
//  GFCalendarDemo
//
//  Created by Mercy on 2016/11/14.
//  Copyright © 2016年 Mercy. All rights reserved.
//

#import “AppDelegate.h“
#import “ViewController.h“

@interface AppDelegate ()

@end

@implementation AppDelegate


- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
    
    self.window = [[UIWindow alloc] initWithframe:[UIScreen mainScreen].bounds];
    
    ViewController *vc = [[ViewController alloc] init];
    UINavigationController *nav = [[UINavigationController alloc] initWithRootViewController:vc];
    
    self.window.rootViewController = nav;
    [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-05-17 11:36  GFCalendar-master\
     文件          10  2017-05-17 11:36  GFCalendar-master\.gitignore
     目录           0  2017-05-17 11:36  GFCalendar-master\Demo\
     目录           0  2017-05-17 11:36  GFCalendar-master\Demo\GFCalendarDemo.xcodeproj\
     文件       16200  2017-05-17 11:36  GFCalendar-master\Demo\GFCalendarDemo.xcodeproj\project.pbxproj
     目录           0  2017-05-17 11:36  GFCalendar-master\Demo\GFCalendarDemo.xcodeproj\project.xcworkspace\
     文件         159  2017-05-17 11:36  GFCalendar-master\Demo\GFCalendarDemo.xcodeproj\project.xcworkspace\contents.xcworkspacedata
     目录           0  2017-05-17 11:36  GFCalendar-master\Demo\GFCalendarDemo.xcodeproj\project.xcworkspace\xcuserdata\
     目录           0  2017-05-17 11:36  GFCalendar-master\Demo\GFCalendarDemo.xcodeproj\project.xcworkspace\xcuserdata\Mercy.xcuserdatad\
     文件       30376  2017-05-17 11:36  GFCalendar-master\Demo\GFCalendarDemo.xcodeproj\project.xcworkspace\xcuserdata\Mercy.xcuserdatad\UserInterfaceState.xcuserstate
     目录           0  2017-05-17 11:36  GFCalendar-master\Demo\GFCalendarDemo.xcodeproj\xcuserdata\
     目录           0  2017-05-17 11:36  GFCalendar-master\Demo\GFCalendarDemo.xcodeproj\xcuserdata\Mercy.xcuserdatad\
     目录           0  2017-05-17 11:36  GFCalendar-master\Demo\GFCalendarDemo.xcodeproj\xcuserdata\Mercy.xcuserdatad\xcschemes\
     文件        3387  2017-05-17 11:36  GFCalendar-master\Demo\GFCalendarDemo.xcodeproj\xcuserdata\Mercy.xcuserdatad\xcschemes\GFCalendarDemo.xcscheme
     文件         486  2017-05-17 11:36  GFCalendar-master\Demo\GFCalendarDemo.xcodeproj\xcuserdata\Mercy.xcuserdatad\xcschemes\xcschememanagement.plist
     目录           0  2017-05-17 11:36  GFCalendar-master\Demo\GFCalendarDemo\
     文件         279  2017-05-17 11:36  GFCalendar-master\Demo\GFCalendarDemo\AppDelegate.h
     文件        2341  2017-05-17 11:36  GFCalendar-master\Demo\GFCalendarDemo\AppDelegate.m
     目录           0  2017-05-17 11:36  GFCalendar-master\Demo\GFCalendarDemo\Assets.xcassets\
     目录           0  2017-05-17 11:36  GFCalendar-master\Demo\GFCalendarDemo\Assets.xcassets\AppIcon.appiconset\
     文件         585  2017-05-17 11:36  GFCalendar-master\Demo\GFCalendarDemo\Assets.xcassets\AppIcon.appiconset\Contents.json
     目录           0  2017-05-17 11:36  GFCalendar-master\Demo\GFCalendarDemo\base.lproj\
     文件        1740  2017-05-17 11:36  GFCalendar-master\Demo\GFCalendarDemo\base.lproj\LaunchScreen.storyboard
     目录           0  2017-05-17 11:36  GFCalendar-master\Demo\GFCalendarDemo\GFCalendar\
     文件         212  2017-05-17 11:36  GFCalendar-master\Demo\GFCalendarDemo\GFCalendar\GFCalendar.h
     文件         352  2017-05-17 11:36  GFCalendar-master\Demo\GFCalendarDemo\GFCalendar\GFCalendarCell.h
     文件        1167  2017-05-17 11:36  GFCalendar-master\Demo\GFCalendarDemo\GFCalendar\GFCalendarCell.m
     文件         768  2017-05-17 11:36  GFCalendar-master\Demo\GFCalendarDemo\GFCalendar\GFCalendarMonth.h
     文件         837  2017-05-17 11:36  GFCalendar-master\Demo\GFCalendarDemo\GFCalendar\GFCalendarMonth.m
     文件         519  2017-05-17 11:36  GFCalendar-master\Demo\GFCalendarDemo\GFCalendar\GFCalendarScrollView.h
     文件       17034  2017-05-17 11:36  GFCalendar-master\Demo\GFCalendarDemo\GFCalendar\GFCalendarScrollView.m
............此处省略26个文件信息

评论

共有 条评论