【正文】
內(nèi)容進(jìn)行搜索自己想要查找的視頻或者是通過(guò)點(diǎn)擊熱門搜索詞來(lái)查找相關(guān)視頻信息。 ②當(dāng)選擇推薦界面更多按鈕,進(jìn)入具體分區(qū)的詳情界面。在此,謹(jǐn)向邢老師表示誠(chéng)摯的感謝。相信在未來(lái)的日子里,我一定會(huì)時(shí)時(shí)想起這些美好的日子,這也將會(huì)是我人生中一筆重要的財(cái)富。 邢老師熱心的態(tài)度讓我對(duì)于畢業(yè)設(shè)計(jì)的迷茫消失了不少,她踏實(shí)的工作精神,也是我以后工作學(xué)習(xí)的榜樣。 系統(tǒng)運(yùn)行的流程如下: ①程序運(yùn)行后,首先進(jìn)入的是主界面,即推薦界面,展示最近熱播的電視劇電影等等視頻信息。用戶可以通過(guò)點(diǎn)擊實(shí)現(xiàn)每個(gè)分區(qū)詳情的查看,選擇自己喜歡的視頻信息進(jìn)行播放。 } 該視頻播放器實(shí)現(xiàn)總共分為四個(gè)模塊,主要為主頁(yè)推薦,分類詳情,搜索更多以及設(shè)置四個(gè)界面,通過(guò)編碼的實(shí)現(xiàn)與調(diào)試,我們基本已實(shí)現(xiàn)各個(gè)界面的功能展示。 } //上提加載 (void)addFooter { __unsafe_unretained typeof(self) vc = self。在使用中引入 MJRefresh 這個(gè)類到要添加刷新事件的類的頭文件中,在 viewDidLoad 方法中調(diào)用這個(gè)類方法即可。 [work startAcquire]。 } (void)refreshUserInterface { = [[LDLManager manager] dataSource][TuiJian]。上述代碼是實(shí)現(xiàn)通知傳遞消息,在要監(jiān)聽(tīng)的界面發(fā)送通知,在要接收的界面接收通知,這點(diǎn)在歷史記錄界面也有用到。 [tabBar release]。 = [[UITabBarItem alloc]initWithTitle:搜索 image:[[UIImage imageNamed:tabbtn_search] imageWithRenderingMode:UIImageRenderingModeAlwaysOriginal] selectedImage:[[UIImage imageNamed:tabbtn_search_selected] imageWithRenderingMode:UIImageRenderingModeAlwaysOriginal]]。 第 15 頁(yè) = [UIColor colorWithRed:220/ green:220 / blue:220 / alpha:1]。代碼如下: LDLRemendTableViewController *remendVC = [[LDLRemendTableViewController alloc] initWithStyle:UITableViewStylePlain]。 interface LDLBaseModel : NSObject (id)initWithDictionary:(NSDictionary *)dictionary。 //沙盒存儲(chǔ) (NSString *)filePath:(NSString *)string。整個(gè)界面看起來(lái)美觀簡(jiǎn)潔,使得用戶使用起來(lái)一目了然。 應(yīng)用程序是我們通過(guò)編碼實(shí)現(xiàn) UI 界面展示,響應(yīng)并處理用戶事件的最重要的一部分,幾乎所有的功能實(shí)現(xiàn)都是基于代碼的書寫來(lái)完成的。 ② NSTimer 定時(shí)器,在應(yīng)用程序中添加動(dòng)畫效果開(kāi)始時(shí)間,添加定時(shí)器。 ④ UIView 視圖,在應(yīng)用程序中主要用于展示視頻信息,并在視圖上進(jìn)行相應(yīng)的操作。就進(jìn)入了真正的系統(tǒng)實(shí)現(xiàn)模塊,首先我們要了解在開(kāi)發(fā)過(guò)程中我們所用到的類與類之間的關(guān)系,方便開(kāi)發(fā)。 View 代表視圖,用于顯示數(shù)據(jù)。 ( 2) UIApplicationDelegate 在開(kāi)發(fā)過(guò)程中, UIApplication 是一個(gè)非常重要的全局對(duì)象。以上技術(shù)足以完成本系統(tǒng)的開(kāi)發(fā)與設(shè)計(jì)。在程序中每個(gè)視頻信息都可以通過(guò)點(diǎn)擊事件來(lái)響應(yīng)視頻播放的方法。 視頻信息搜索 視頻信息搜索是視頻播放器的功能之一,它主要使用了官方提供的一個(gè)系統(tǒng)類,并通過(guò)對(duì)網(wǎng)址 url 進(jìn)行拼接參數(shù)實(shí)現(xiàn)搜索結(jié)果,進(jìn)行界面展示。 語(yǔ)言 ObjectiveC 是一門面向?qū)ο蟮木幊陶Z(yǔ)言 [7]。 iOS 系統(tǒng)為每個(gè)應(yīng)用程分配 30MB 的內(nèi)存,超過(guò) 20MB 會(huì)收到內(nèi)存警告,如果超過(guò) 30MB,系統(tǒng)將會(huì)終止你的應(yīng)用程序,也就是我們熟悉的閃退 [2]。 課題預(yù)期的目標(biāo) 本課題研究的主要內(nèi)容是:利用 ObjectiveC 和一些第三方類去實(shí)現(xiàn)的一款應(yīng)用軟件,通過(guò)對(duì)網(wǎng)絡(luò)進(jìn)行數(shù)據(jù)解析、 UI 框架的搭建、第三方庫(kù) SDWebImage的使用等實(shí)現(xiàn)此應(yīng)用程序的視頻信息的展示以及觀看等基本的功能。s development trend in recent years, everyone is there for all to see, mention smartphones have to speak phone software, smart power to run from game entertainment to a variety of software for mobile office. Subject is the use of mobile Inter features provide people with better, more full of game strategy. This topic is to use the Object the C programming language to implement the iOS software platform game box, by using the system class and the thirdparty libraries to realize data refresh and loading, image processing, video playback, and data analysis, user base is bigger, also have good development space and prospects. Data used in the project information from third party suppliers, ensure the accuracy of the data. Subjects in order to improve the user experience, USES the asynchronous thread processing work request and UI display separately, which makes the program more robust is reasonable. VI 目 錄 1 概論 ..................................................... 1 ....................................... 1 ................................. 1 ....................................... 1 2 相關(guān)技術(shù)的介紹 ............................................ 2 ............................................. 2 ......................................... 2 內(nèi)存管理機(jī)制 .................................... 2 語(yǔ)言 .......................................... 3 3 需求分析 ................................................. 4 ..................................... 4 視頻信息搜索 .................................... 4 視頻信息展示 .................................... 4 視頻信息播放 .................................... 5 ....................................... 5 4 系統(tǒng)設(shè)計(jì) ................................................. 6 ............................................. 6 模式 .............................................. 7 5 系統(tǒng)實(shí)現(xiàn) ................................................. 9 ..................................... 9 VII .................................... 12 應(yīng)用程序工作流程 ..............................