




已阅读5页,还剩6页未读, 继续免费阅读
版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领
文档简介
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. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
- 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
- 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
- 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
- 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
- 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
- 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
最新文档
- 小儿皮疹课件
- 美团独家协议签不签订合同
- 个人供水合同协议书范本
- 出租库房安全管理协议书
- 求购婴儿服装销售合同范本
- 上海股权仲裁协议书范本
- 期货从业资格之《期货法律法规》考前冲刺测试卷讲解含答案详解(基础题)
- 考点解析自考专业(小学教育)测试卷及参考答案【突破训练】
- 万达商场消防知识培训
- 期货从业资格之期货投资分析考前冲刺训练试卷带答案详解(b卷)
- 端粒长度预测模型-洞察及研究
- 浙江省舟山市2024-2025学年高二下学期6月期末物理+答案
- 执法办案培训课件
- 气候变化对水资源供需关系的动态演变分析
- 行政执法培训课件
- 老年人吸入性肺炎护理
- 停产报告管理制度
- 合并家庭组建协议书
- 宽带小区进场协议书
- 电解铝公司工程项目投资估算
- 融资专员测试题及答案
评论
0/150
提交评论