• 大小: 38.37MB
    文件类型: .zip
    金币: 1
    下载: 0 次
    发布日期: 2023-08-03
  • 语言: 其他
  • 标签:

资源简介

IOS音乐播放器

资源截图

代码片段和文件信息

//
//  AppDelegate.m
//  Music
//
//  Created by hanlei on 16/7/21.
//  Copyright © 2016年 hanlei. All rights reserved.
//

#import “AppDelegate.h“

@interface AppDelegate ()

@end

@implementation AppDelegate


- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
    
    //1.获取音频回话
    AVAudioSession *session = [AVAudioSession sharedInstance];
    //2. 设置后台播放类型
    [session setCategory:AVAudioSessionCategoryPlayback error:nil];
    //3.激活回话
    [session setActive:YES error:nil];
    
    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-07-25 10:10  Music\
     文件        6148  2016-07-25 10:18  Music\.DS_Store
     目录           0  2016-08-01 16:41  __MACOSX\
     目录           0  2016-08-01 16:41  __MACOSX\Music\
     文件         120  2016-07-25 10:18  __MACOSX\Music\._.DS_Store
     目录           0  2016-07-25 10:10  Music\Music\
     文件        8196  2016-07-21 14:25  Music\Music\.DS_Store
     目录           0  2016-08-01 16:41  __MACOSX\Music\Music\
     文件         120  2016-07-21 14:25  __MACOSX\Music\Music\._.DS_Store
     目录           0  2016-07-25 10:10  Music\Music\base.lproj\
     文件        6148  2016-07-22 17:12  Music\Music\base.lproj\.DS_Store
     目录           0  2016-08-01 16:41  __MACOSX\Music\Music\base.lproj\
     文件         120  2016-07-22 17:12  __MACOSX\Music\Music\base.lproj\._.DS_Store
     文件        3822  2016-07-25 10:10  Music\Music\base.lproj\LaunchScreen.xib
     目录           0  2016-07-25 10:10  Music\Music\Classes\
     文件       10244  2016-07-21 14:02  Music\Music\Classes\.DS_Store
     目录           0  2016-08-01 16:41  __MACOSX\Music\Music\Classes\
     文件         120  2016-07-21 14:02  __MACOSX\Music\Music\Classes\._.DS_Store
     文件         269  2016-07-21 11:07  Music\Music\Classes\AppDelegate.h
     文件         171  2016-07-21 11:07  __MACOSX\Music\Music\Classes\._AppDelegate.h
     文件        2219  2016-07-22 15:59  Music\Music\Classes\AppDelegate.m
     文件         171  2016-07-22 15:59  __MACOSX\Music\Music\Classes\._AppDelegate.m
     目录           0  2016-08-01 16:36  Music\Music\Classes\Controller\
     文件        6148  2016-07-21 14:43  Music\Music\Classes\Controller\.DS_Store
     目录           0  2016-08-01 16:41  __MACOSX\Music\Music\Classes\Controller\
     文件         120  2016-07-21 14:43  __MACOSX\Music\Music\Classes\Controller\._.DS_Store
     文件         229  2016-07-21 14:19  Music\Music\Classes\Controller\MusicPlayingViewController.h
     文件         171  2016-07-21 14:19  __MACOSX\Music\Music\Classes\Controller\._MusicPlayingViewController.h
     文件        8667  2016-08-01 16:36  Music\Music\Classes\Controller\MusicPlayingViewController.m
     文件         171  2016-08-01 16:36  __MACOSX\Music\Music\Classes\Controller\._MusicPlayingViewController.m
     文件       25657  2016-07-22 15:52  Music\Music\Classes\Controller\MusicPlayingViewController.storyboard
............此处省略401个文件信息

评论

共有 条评论

相关资源