




版權(quán)說明:本文檔由用戶提供并上傳,收益歸屬內(nèi)容提供方,若內(nèi)容存在侵權(quán),請進(jìn)行舉報或認(rèn)領(lǐng)
文檔簡介
摘要摘要iOS系統(tǒng)的DesignandImplementationDesignandImplementationBasediOSNewsWiththeeraofprogress,scienceandtechnology,especiallytherapiddevelopmentofinformationprocessingtechnologyandcomputerscienceandpopularintoday'sworldwehaveenteredtheinformationage.Theincreasingdemandforinformation,Facingthevastseaofinformation,wecannothelpbutmisssomeveryimportantinformationontheirown,soIforinformationleakfilled,screenedworldaffairsnews,todevelopasystembasedoniOSnewsclient,makelifebusypeoplebetteraccesstonewsandinformation,Withtheimprovementofpeople'slivingstandards,conciseaccesstoinformationhasbecometoday'strend.Inordertoobtaintimelyandaccurateinformation,savetimeandprovidemoreconvenientservice,sonewsclientbecamethepeople'sdailylifeessentialAPP,ithasbecomeincreasinglypopular.Newsclientsfreshinformationuserscaneasilymanageandreadingforeveryonewithagreatconvenience,andtoensureerror-freeandefficient.Peoplecanstayathomethelatestnewsintoday'sworld,nolongersittinginfrontoftheTVtowatchthenewseveryday,andalargedegreeofsavingeveryone'stime.Thenewsclientforthemajorityofsportsfans,perfectforusersNewsNewsNBA,CBA,internationalfootball,racingandothersportingevents.Newsinterfaceeasybrowsingworldsportshighlights;shakeshakeoutfreshinformationoperations,addingfun;enterthesetupinterface,theusercanselectpersonalpreferences,Keywords:AppleiOSsystem,newsclient,目摘錄 1緒 論目摘錄 1緒 論文研究的背景意 目前的國內(nèi)現(xiàn) 2 開發(fā)的集成環(huán)境 開發(fā)的輔助工具 系統(tǒng)框 Foundation框 UIKit框 CoreData框 數(shù)據(jù)庫 代碼管理工具 開發(fā)工具包 3 3.1系統(tǒng)概 設(shè)計目 系統(tǒng)特 3.2.2模塊需求描 3.3用例模 用例模型整體描 各功能模塊用例描 數(shù)據(jù)字 開發(fā)環(huán)境的選 3.6系統(tǒng)可行性分 4 技3.6系統(tǒng)可行性分 4 技術(shù)路 數(shù)據(jù)庫設(shè) 5 首頁輪播圖及今日咨詢功能的實 首頁輪播圖Model層的實 首頁輪播圖View層的實 5.1.2首頁輪播圖Controller層的實 用戶登錄及注冊功能的實 注冊功能的實 登錄功能的實 5.3我的收藏功能的實 點擊收藏按鈕時所觸發(fā)的事 數(shù)據(jù)處理文 6 6.1測試方 收藏新聞模塊測 取消新聞收藏模塊測 首頁輪播圖模塊測 測試總 7結(jié) 致 1章1章緒發(fā)一款展示體育新聞的資訊類移動端APP。iOSAPP都具有自己的獨特之處,新聞客戶端也不例外。第2 關(guān)鍵技術(shù)介Xcode是由蘋第2 關(guān)鍵技術(shù)介Xcode是由蘋果公司所開發(fā)的用來專門編iOSOSXiOS應(yīng)用程序最快的方式。Xcode是一款非常強大的軟件,它支持多種語言,例如:Objective-C、C、C++、Swift等。Xcode具有統(tǒng)一的用戶界面設(shè)計,編碼,測試,調(diào)試也是在一個簡單的窗口內(nèi)完成的。Xcode是蘋果開發(fā)者提供的非開源的集成開發(fā)環(huán)境,Xcode編譯速度。每一次操作,非??焖俸腿菀?。Xcode4iOS設(shè)備,iPhoneiPod-touchOSX10.6.2MACOSiOSSDKiOSXcode應(yīng)好、方便的應(yīng)用程序開發(fā)環(huán)境,這樣你就可以開發(fā)一個良好的iOS應(yīng)用。消息、消息推送、數(shù)據(jù)存儲等服務(wù),涵蓋了多種移動應(yīng)用開發(fā)所需求的技術(shù)。并且LearnCloud支持多個平臺,例如iOS、Android、Web等。本系統(tǒng)的登陸就是采用的Foundation常用的結(jié)構(gòu)體NSRange、NSPoint、NSSize、NSRect創(chuàng)建日期和時間對象NSDate、NSDateFormatter符串的截取、字符串的比較等。例如capitalizedStringNSArrayNSMutableArray、arrayWithObjects、removeAllObject、sortedArrayUsingSelector(5)NSDictionaryNSMutableDictionary(6)NSFileManager(7)歸檔包括NSUserDefaults、NSKeyedArchiver歸檔(加密形式、SQLite3(嵌式數(shù)據(jù)庫、式數(shù)據(jù)庫、CoreData(面向?qū)ο蠓绞降那度胧綌?shù)據(jù)庫)2.3.2UIKit用戶界面的管理和構(gòu)建例如:UIWindow視圖、UIAlertView警告視圖、關(guān)于圖片的處理UIImage、imageNamed、旋轉(zhuǎn)的設(shè)置關(guān)于捕獲觸摸和移動的事件例如:UITouchPhaseBegan、UITouchPhaseMovedUITouchPhaseEnded、呈現(xiàn)文字和定制用戶界面的控件UIView、UIText、UITextField等設(shè)UIFont、UIColorsystemWithFont、設(shè)置顏色2.3.3CoreData介紹:CoreData提供對象的管理,使用CoreData,你可以創(chuàng)建模型對象,并管理這提供基本的用[NSFetchedResultsController]支持基于文檔的應(yīng)用程iOSMySQL、PostgreSQL這兩款數(shù)據(jù)庫每一行數(shù)據(jù)成為一條記錄,可通過SQL語句進(jìn)行增刪改查。每種語言發(fā)展到一定階段,就會出現(xiàn)相應(yīng)的依賴管理工具,例如Java語言的install”2.62.6iOSappQQ實現(xiàn)國內(nèi)外40多家的主流社交平臺。它集成快捷,操作簡單,能夠通過登錄第三方第3第3 需求分iOS的新聞客戶端是通過開發(fā)實踐和所學(xué)知識實現(xiàn)。首頁主要模塊包括:“新Objective-C編寫,UI界面設(shè)計,SQLite數(shù)據(jù)庫,以Xcode為開發(fā)平臺進(jìn)行編寫。需求規(guī).表3.1用戶查看首頁輪播圖表表3.2用戶查看今日咨詢表表3.3用戶收藏功能系統(tǒng)表表3.1用戶查看首頁輪播圖表表3.2用戶查看今日咨詢表表3.3用戶收藏功能系統(tǒng)表1.用戶滑動首頁今日2.今日隨著用戶滑動而改1.用戶滑動首頁輪播熱門新聞隨著用戶滑3.4的數(shù)據(jù)字操作系統(tǒng):MacOSXYosemite編程軟件: 3.4的數(shù)據(jù)字操作系統(tǒng):MacOSXYosemite編程軟件: 3.用戶點擊新聞詳情上邊的星星形狀的收藏按2.用戶進(jìn)入某個新聞的詳用戶點擊某個新4章本系統(tǒng)采用xcode基于object-c開發(fā),數(shù)據(jù)存儲采用SQLite數(shù)據(jù)庫。將用戶存儲的相應(yīng)的增刪改查等操作。電影的具體信息如表4.1所示。4.1收藏4章本系統(tǒng)采用xcode基于object-c開發(fā),數(shù)據(jù)存儲采用SQLite數(shù)據(jù)庫。將用戶存儲的相應(yīng)的增刪改查等操作。電影的具體信息如表4.1所示。4.1收藏數(shù)據(jù)庫notnotnotnotnotynot第5 系統(tǒng)實第5 系統(tǒng)實5.1播圖以及今日新聞兩部分,本系統(tǒng)均已MVC模式實現(xiàn)功能。5.1首頁DUMMovieModel.h中設(shè)值關(guān)于CityModel類的所涉及到的屬性@property(nonatomic,copy,readwrite)NSNumber*@property(nonatomic,copy,readwrite)NSString*DUMMovieTopScrollView中設(shè)值輪播圖的相關(guān)屬性。設(shè)值首頁輪播圖一共有多少個頁面,方法為numberOfPages:-{NSInteger-{NSIntegerpageNumber=self.contentSize.width/self.bounds.size.width;returnpageNumber;}-{NSIntegercurrentPage=floor((self.contentOffset.x-/self.frame.size.width)+return}-{[selfsetCurrentPage:currentPage}-(void)setCurrentPage:(NSInteger)currentPage{CGFloatoffsetX=self.bounds.size.width*CGPointoffset=CGPointMake(offsetX,0);}-{if(![selfisDecelerating]&&![self{if(self.currentPage==[selfnumberOfPages]-{self.currentPage=}NSIntegercPage=[selfsetCurrentPage:cPage}[selfperformSelector:@selector(autoChangePage)withObject:nilNSIntegercPage=[selfsetCurrentPage:cPage}[selfperformSelector:@selector(autoChangePage)withObject:nil}-{=alloc]initWithFrame:CGRectMake(0,0,[UIScreenmainScreen].bounds.size.width,[UIScreen_movieTopScrollView.delegate=self;=[UIScreen,_titleCnLabel.font=[UIFont[_movieTopScrollViewaddSubview:_titleCnLabel];_commonSpecialLabel=[[UILabelalloc]initWithFrame:CGRectMake(0,[UIScreenmainScreen].bounds.size.width*33/32,[UIScreenmainScreen].bounds.size.width,[UIScreen_commonSpecialLabel.textAlignment=NSTextAlignmentCenter;[_movieTopScrollViewaddSubview:_commonSpecialLabel];}方文件DUMAFNHTTPRequestOPManager.h對數(shù)據(jù)進(jìn)行請求并解析。-{responseBlock:^(idresult,NSError*error){if(error){return}responseBlock:^(idresult,NSError*error){if(error){return}NSMutableArray*imgArray=[NSMutableArrayarray];NSDictionary*movieListDic=(NSDictionary*)result;NSArray*movieListArr=movieListDic[@"movies"];for(NSDictionary*dicinmovieListArr)通過DUMMovieModel對請求下來的數(shù)據(jù)進(jìn)行賦值*=[_moviesList[imgArray}}5.25.3所示。本功能使用LearnCloud實現(xiàn)。5.3登錄界5.2注冊5.3登錄界5.2注冊-[MMProgressHUD"}AVUser*user=[AVUserviewWithTag:Tag_TempPasswordTextField]viewWithTag:Tag_TempPasswordTextField][usersignUpInBackgroundWithBlock:^(BOOLsucceeded,NSError{if(succeeded)NSLog(@"注冊成功dismissWithSuccess:@"注冊成功[self.navigationControllerNSString*if(error.code==202)err@"賬戶已存在}elseif(error.code==203)err@"此電子郵箱已經(jīng)被占用}}}-[MMProgressHUDshowWithTitle:@"正在登錄"status:@"……"cancelBlock:^{//[weakHttpRequest[AVUserlogInWithUsernameInBackground:(NSString*)[(UITextField[AVUserlogInWithUsernameInBackground:(NSString*)[(UITextField{if(user)NSLog(@"登錄成功dismissWithSuccess:@"登錄成功[selfsetDefaultUser:user.usernamepwd:user.password];if(error.code210)[MMProgressHUDdismissWithError:@"密碼錯誤"title:@"敗}elseif(error.code==211)[MMProgressHUDdismissWithError:@"密碼錯誤"title:@"存在}}}5.35.45.55.45.5中的bookmarkAction方法,其核心代碼:-{DUMDataBaseHandle*dataBase=[DUMDataBaseHandleif([selfselectMemberFromDataBase])[dataBaseif([_delegate{[_delegate}}elseif{}}elseif{}[dataBaseif([_delegate{[_delegate}}}5.3.2-{NSString*dbPath=[NSSearchPathForDirectoriesInDomains(NSCachesDirectory,NSUserDomainMask,YES)lastObject];=if([_dbopen]){[_dbexecuteUpdate:@"CREATETABLEMovies(IDINTEGERPRIMARYKEYNOTNULL,MoviesDataBLOBNOTNULL)"];[_dbexecuteUpdate:@"CREATETABLEHotels(IDINTEGERPRIMARYKEYNOTNULL,HotelsDataBLOBNOTNULL)"];}}{intresult=[_dbclose];if(result){_db=}}#pragmamark-電影信息數(shù)據(jù)存儲(void)insertNewMovies:(DUMMovieDetailModel{intresult=[_dbclose];if(result){_db=}}#pragmamark-電影信息數(shù)據(jù)存儲(void)insertNewMovies:(DUMMovieDetailModel{[self*=dataOfArchiverObject:moviesModelforKey:[moviesModel.movieIdBOOLsaveSucceed[_dbexecuteUpdate:@"insertintovaluesif(saveSucceed)UIAlertView*alertView=[[UIAlertViewalloc]initWithTitle:@"提示"message:@"收藏成功"delegate:nilcancelButtonTitle:nilotherButtonTitles:nil,nil];[alertViewNSEC_PER_SEC)),dispatch_get_main_queue(),*[alertViewdismissWithClickedButtonIndex:0}}-(void)deleteMovies:(DUMMovieDetailModel{[self=}-(DUMMovieDetailModel*)selectMoviesWithID:(NSString{[selfNSData*data==}-(DUMMovieDetailModel*)selectMoviesWithID:(NSString{[selfNSData*data=[NSDataFMResultSet*resultSet=[self.dbexecuteQuery:@"selectMoviesDatafromMovieswhereID=?",ID];while([resultSetnext])=}DUMMovieDetailModel*movieModel==returnmovieModel;}-(NSArray{[selfNSData*data=[NSDatadata];NSIntegerID=0;NSMutableArray*movies=[NSMutableArrayFMResultSet*resultSet=[self.dbexecuteQuery:@"select*fromMovies"];while([resultSe
溫馨提示
- 1. 本站所有資源如無特殊說明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請下載最新的WinRAR軟件解壓。
- 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請聯(lián)系上傳者。文件的所有權(quán)益歸上傳用戶所有。
- 3. 本站RAR壓縮包中若帶圖紙,網(wǎng)頁內(nèi)容里面會有圖紙預(yù)覽,若沒有圖紙預(yù)覽就沒有圖紙。
- 4. 未經(jīng)權(quán)益所有人同意不得將文件中的內(nèi)容挪作商業(yè)或盈利用途。
- 5. 人人文庫網(wǎng)僅提供信息存儲空間,僅對用戶上傳內(nèi)容的表現(xiàn)方式做保護(hù)處理,對用戶上傳分享的文檔內(nèi)容本身不做任何修改或編輯,并不能對任何下載內(nèi)容負(fù)責(zé)。
- 6. 下載文件中如有侵權(quán)或不適當(dāng)內(nèi)容,請與我們聯(lián)系,我們立即糾正。
- 7. 本站不保證下載資源的準(zhǔn)確性、安全性和完整性, 同時也不承擔(dān)用戶因使用這些下載資源對自己和他人造成任何形式的傷害或損失。
最新文檔
- 同人寄售定制合同范例
- 便道磚鋪設(shè)施工合同范例
- 向個人采購合同范本
- ppp供暖項目合同范本
- 倆兄弟建房子合同范本
- 產(chǎn)品加工轉(zhuǎn)讓合同范本
- 出售種植大棚合同范本
- 360公司入股合同范本
- 信號燈維修合同范本
- 與政府簽合同范本
- 四川省建筑工程地下結(jié)構(gòu)抗浮錨桿關(guān)鍵技術(shù)作業(yè)規(guī)程
- 中醫(yī)養(yǎng)生保健素養(yǎng)知識講座
- 采耳員工合同
- 汽車修理有限公司章程
- (多場景條款)過橋墊資借款合同
- JBT 7901-2023 金屬材料實驗室均勻腐蝕全浸試驗方法 (正式版)
- 小學(xué)科學(xué)人教鄂教版四年級下冊全冊教案2023春
- 非遺文化介紹課件:扎染
- 營銷培訓(xùn):揭秘銷售成功密碼
- 基于STM32Cube的嵌入式系統(tǒng)應(yīng)用 教案
- 動畫分鏡頭腳本設(shè)計課件
評論
0/150
提交評論