Quellcode durchsuchen

上传文件至 ''

卖冰棍的boy vor 6 Jahren
Ursprung
Commit
aa320ed863
5 geänderte Dateien mit 142 neuen und 0 gelöschten Zeilen
  1. 17 0
      AppDelegate.h
  2. 60 0
      AppDelegate.m
  3. 13 0
      BaseView.h
  4. 15 0
      Podfile
  5. 37 0
      Podfile.lock

+ 17 - 0
AppDelegate.h

@@ -0,0 +1,17 @@
+//
+//  AppDelegate.h
+//  KBTabbarController
+//
+//  Created by kangbing on 16/5/31.
+//  Copyright © 2016年 kangbing. All rights reserved.
+//
+
+#import <UIKit/UIKit.h>
+
+@interface AppDelegate : UIResponder <UIApplicationDelegate>
+
+@property (strong, nonatomic) UIWindow *window;
+
+
+@end
+

+ 60 - 0
AppDelegate.m

@@ -0,0 +1,60 @@
+//
+//  AppDelegate.m
+//  KBTabbarController
+//
+//  Created by kangbing on 16/5/31.
+//  Copyright © 2016年 kangbing. All rights reserved.
+//
+
+#import "AppDelegate.h"
+#import "KBTabbarController.h"
+
+@interface AppDelegate ()
+
+@end
+
+@implementation AppDelegate
+
+
+- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
+    
+    self.window = [[UIWindow alloc]initWithFrame:[UIScreen mainScreen].bounds];
+    
+    
+    self.window.rootViewController = [[KBTabbarController alloc]init];
+    
+    
+    
+    [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

+ 13 - 0
BaseView.h

@@ -0,0 +1,13 @@
+//
+//  BaseView.h
+//  KBTabbarController
+//
+//  Created by xiaoguang  Xu on 2018/9/26.
+//  Copyright © 2018年 kangbing. All rights reserved.
+//
+
+#import <UIKit/UIKit.h>
+
+@interface BaseView : UIView
+
+@end

+ 15 - 0
Podfile

@@ -0,0 +1,15 @@
+# Uncomment the next line to define a global platform for your project
+# platform :ios, '9.0'
+
+target 'KBTabbarController' do
+  # Uncomment the next line if you're using Swift or would like to use dynamic frameworks
+  # use_frameworks!
+
+  # Pods for KBTabbarController
+
+  pod 'SDWebImage', '~> 4.0.0'
+  pod 'AFNetwork', '~> 0.1.0'
+  pod 'MJRefresh', '~> 3.1.12'
+
+
+end

+ 37 - 0
Podfile.lock

@@ -0,0 +1,37 @@
+PODS:
+  - AFNetwork (0.1.0):
+    - AFNetworking (~> 3.0)
+  - AFNetworking (3.1.0):
+    - AFNetworking/NSURLSession (= 3.1.0)
+    - AFNetworking/Reachability (= 3.1.0)
+    - AFNetworking/Security (= 3.1.0)
+    - AFNetworking/Serialization (= 3.1.0)
+    - AFNetworking/UIKit (= 3.1.0)
+  - AFNetworking/NSURLSession (3.1.0):
+    - AFNetworking/Reachability
+    - AFNetworking/Security
+    - AFNetworking/Serialization
+  - AFNetworking/Reachability (3.1.0)
+  - AFNetworking/Security (3.1.0)
+  - AFNetworking/Serialization (3.1.0)
+  - AFNetworking/UIKit (3.1.0):
+    - AFNetworking/NSURLSession
+  - MJRefresh (3.1.12)
+  - SDWebImage (4.0.0):
+    - SDWebImage/Core (= 4.0.0)
+  - SDWebImage/Core (4.0.0)
+
+DEPENDENCIES:
+  - AFNetwork (~> 0.1.0)
+  - MJRefresh (~> 3.1.12)
+  - SDWebImage (~> 4.0.0)
+
+SPEC CHECKSUMS:
+  AFNetwork: 0dbdb2ffb4a7770b3d1802dc85b50ab31263f2c2
+  AFNetworking: 5e0e199f73d8626b11e79750991f5d173d1f8b67
+  MJRefresh: b96cdb21c4aa75a7b07654311ab2f315c497e806
+  SDWebImage: 76a6348bdc74eb5a55dd08a091ef298e56b55e41
+
+PODFILE CHECKSUM: 0797b4fdf87913bc9c9aa125290b576199b5d070
+
+COCOAPODS: 1.2.0