




已閱讀5頁(yè),還剩6頁(yè)未讀, 繼續(xù)免費(fèi)閱讀
版權(quán)說(shuō)明:本文檔由用戶提供并上傳,收益歸屬內(nèi)容提供方,若內(nèi)容存在侵權(quán),請(qǐng)進(jìn)行舉報(bào)或認(rèn)領(lǐng)
文檔簡(jiǎn)介
RadioStreamCreated: 08/02/2012By: Goran VuksicContact:Web:IntroductionRadioStream is full native application for iPad and iPhone. This application stream internet radio music.Package contains two projects: one for iPad and one for iPhone, so you can release HD version for iPad and regular version for iPhone. iPhone version also includes Retina support (4G & 4S high resolution graphics).Easy to set up: just fill property list (XML) file with links of sreaming radio sites.Links to radio sites can be found here: and on many other online radio sitesRadio stream features:- easy to configure (no need to know programming in XCode)- group your stations in categories (rock, pop, electronic, hip-hop.)- prepulated XML with 40 radio streams divided in categories- 30 custom made station images- easy to add your own images for each station- application automaticaly remebers recent played stations- option to add station to favorites- play and pause music- settings: clear favorites and recents- application display HUD when buffering- graphics are made separate for each project to support different iPad and iPhone resolutions- iPhone 4G & 4S Retina support- and much more.Application is ready for build and upload to iTunes store.Thanks for purchase!Application descriptionRadio stream application allows user to listen defined radio station by streaming music from Internet. Stations are devided in categories, each category can hold unlimited number of station. User have options to add stations to favorites, to remove it from favorites, to check recently played stations and to clear both station lists: favorites and recents.Each application have Icon and Default (loading) image.RadioStream have tab navigation and it consist of 4 tabs:- Categories- Recents- Favorites- SettingsCategories are defined in property list (XML). Each category will appear in tab Categories as one row in table view, cell text is predefined category name that application reads from property list. Default categories, that you can easily change, are: rock, pop, electronic and hip-hop. For rows on this and all other views custom select view is defined, so when user select one row itll be highlighted with custom image. Beside this each cell have disclosure indicator enabled. Image below shows Categories tab on iPhone:When user select category, application will navigate to second screen where user can see all radio stations defined for this category. Difference between this view and category view is in cell background: cells on this view have speaker icon on left side. Screenshot on iPhone for this view is visible on image below:When user select station application will show player screen:For each station user can define image in property list that will be displayed in image placeholder on player screen. If image is not defined application will show default placeholder image. Each image is displayed in such way that there will be 10px spacing from each side on placeholder, so image will have gray border.Station is automaticaly streamed from Internet when view loads, while station is buffering HUD with message will be displayed.Below placeholder image there are 2 buttons: pause and add to favorites. Pause button will change to play button after user touch it and it will pause radio streaming. Add to favorites button will remeber that this station is favorited and user can play it again from favorites tab. Add to favorites will change to remove from favorites button after song is added to favorites.Default images for player view have green images for play and add to favorites buttons and blue images for pause and remove from favorites buttons:Recents tab show list of recently played radio stations, this view is visible on image below:Favorites tab display all favorited radio stations, those who user marked as favorite on player view. Favorites view is visible on image below:Settings screen allows user to clear all recent radio stations and all favorited radio stations. Settings view is visible on image below:When user taps row application will ask via alert dialog is user sure that all recents or favorites should be deleted:Projects for iPad and iPhone are same, with only one difference: iPad project dont have settings tab, so option to clear favorites is on right side of navigation bar in favorites tab: and option to clear recent files is also on right side of navigation bar in recents tab:All assets for iPad are created separately to fit in iPad 768*1024px resolution, iPad application preview is on image below (player view on iPad):Property list (XML) configurationProject is easy to configure with property list (XML) without any need to know programming. This file is named categorizedSites.plist can be found in folder Supporting Files. Structure of property list is shown on image below: For each category on categories view create ItemX where X stand for order number (keep in mind numbers start from zero). This item should be dictionary type and under it create string item categoryName which is name you want to define for each category.For each station you would like to add in this category add child node and name it SiteX (where X is number starting from 0).Station is defined with 3 child nodes:- siteName: name of radio station- siteLink: URL to streaming radio web site- siteLogoName: name of .png image added to project that will be displayed in image placeholder on player viewXCode project overviewProject requires following frameworks:- Foundation.framework- UIKit.framework- CoreGraphics.framework- MediaPlayer.frameworkIn project supporting files youll find MBProgressHUD class, that is helper class from creating HUD. HUD is shown on player view when buffering stream.XCode classesAppDelegateApplication delegate in method:- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptionscreates UITabBarController with views for each of 4 tabs: categories, recents, favorites and settings.CategoryViewControllerCategory view display list of categories from property list. Property list name is defined at top of main file:#define kPlistName categorizedSitesThis view is table view, on row select method:- (void)tableView:(UITableView*)tableView didSelectRowAtIndexPath:(NSIndexPath*)indexPathwill open SitesViewController.SitesViewControllerThis view controller show list of radio stations in each category in table view, on row select PlayerViewController is allocated.PlayerViewControllerPlayer view controller is used to streaming audio from link in property list. Buttons in Interface Builder are connected with following methods that are used to play/pause music and to add/remove item to favorites:- (IBAction)addOrRemoveFromFavoritesButtonPressed- (IBAction)playOrPauseButtonPressedRecentViewControllerRecent tab use this view controller. List of recent radio stations is stored in property list that is created on iOS device. Name of this property list can be defined on top of main class:#define kRecentsPlistName recentSitesMethod:- (void)tableView:(UITableView*)tableView didSelectRowAtIndexPath:(NSIndexPath*)indexPathwill open PlayerViewController to play selected recent item.FavoritesViewControllerFavorites view is defined
溫馨提示
- 1. 本站所有資源如無(wú)特殊說(shuō)明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請(qǐng)下載最新的WinRAR軟件解壓。
- 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請(qǐng)聯(lián)系上傳者。文件的所有權(quán)益歸上傳用戶所有。
- 3. 本站RAR壓縮包中若帶圖紙,網(wǎng)頁(yè)內(nèi)容里面會(huì)有圖紙預(yù)覽,若沒(méi)有圖紙預(yù)覽就沒(méi)有圖紙。
- 4. 未經(jīng)權(quán)益所有人同意不得將文件中的內(nèi)容挪作商業(yè)或盈利用途。
- 5. 人人文庫(kù)網(wǎng)僅提供信息存儲(chǔ)空間,僅對(duì)用戶上傳內(nèi)容的表現(xiàn)方式做保護(hù)處理,對(duì)用戶上傳分享的文檔內(nèi)容本身不做任何修改或編輯,并不能對(duì)任何下載內(nèi)容負(fù)責(zé)。
- 6. 下載文件中如有侵權(quán)或不適當(dāng)內(nèi)容,請(qǐng)與我們聯(lián)系,我們立即糾正。
- 7. 本站不保證下載資源的準(zhǔn)確性、安全性和完整性, 同時(shí)也不承擔(dān)用戶因使用這些下載資源對(duì)自己和他人造成任何形式的傷害或損失。
最新文檔
- 網(wǎng)絡(luò)管理員基礎(chǔ)培訓(xùn)課程
- 中班健康:認(rèn)識(shí)肚臍
- 工程公司內(nèi)部培訓(xùn)
- 10kv配網(wǎng)帶電作業(yè)培訓(xùn)
- 園長(zhǎng)培訓(xùn):如何應(yīng)對(duì)幼兒分離焦慮
- 無(wú)人機(jī)輔助車隊(duì)運(yùn)輸合同范本
- 跨國(guó)車輛損傷賠償及國(guó)際物流合同
- 文化創(chuàng)意步行街個(gè)人店鋪?zhàn)赓U與創(chuàng)意產(chǎn)業(yè)發(fā)展合同
- 互聯(lián)網(wǎng)企業(yè)財(cái)務(wù)人員客戶信息保密責(zé)任合同
- 餐飲企業(yè)品牌推廣合作經(jīng)營(yíng)協(xié)議
- 校際教研聯(lián)合體活動(dòng)方案及案例
- 車站(助理)調(diào)度員技能鑒定理論考試題及答案
- 雨污分流及路面修復(fù)工程施工組織設(shè)計(jì)方案
- 137案例黑色三分鐘生死一瞬間事故案例文字版
- 2024年版《代謝相關(guān)脂肪性肝病防治指南》解讀1
- 《弘揚(yáng)教育家精神》專題課件
- 生豬屠宰獸醫(yī)衛(wèi)生檢驗(yàn)人員理論考試題及答案
- 北京市通州區(qū)2024-2025學(xué)年四年級(jí)語(yǔ)文下學(xué)期期末試卷新人教版
- 廣東省珠海市金灣區(qū)2023-2024學(xué)年八年級(jí)下學(xué)期7月期末歷史試題
- 社會(huì)語(yǔ)言學(xué)視角下網(wǎng)絡(luò)流行用語(yǔ)研究
- 數(shù)據(jù)庫(kù)程序設(shè)計(jì)智慧樹知到期末考試答案章節(jié)答案2024年外交學(xué)院
評(píng)論
0/150
提交評(píng)論