i done completing rss feed app internship , going boss wants article page format be: article title on top, article picture below followed article text underneath instead of mobile web view comes up.
here mobile view have after clicking on article cell:
and here want like:
the code webview in rssdetail.m file got open source code. first app making experience ever not quite sure how work around this. here code:
#import "rssdetail.h" @interface rssdetail () @end @implementation rssdetail @synthesize feedurl, webview; - (void)viewdidload { [super viewdidload]; // additional setup after loading view. //load web view url nsurl *url = [nsurl urlwithstring:feedurl]; nsurlrequest *requestobj = [nsurlrequest requestwithurl:url]; webview.delegate = self; [webview loadrequest:requestobj]; } - (void)didreceivememorywarning { [super didreceivememorywarning]; // dispose of resources can recreated. } #pragma mark - webview delegate - (void)webviewdidstartload:(uiwebview *)webview { [[uiapplication sharedapplication] setnetworkactivityindicatorvisible:yes]; } - (void)webviewdidfinishload:(uiwebview *)webv { self.title = [webv stringbyevaluatingjavascriptfromstring:@"document.title"]; } - (void)webview:(uiwebview *)webview didfailloadwitherror:(nserror *)error { //log errors loading, normal on webviews nslog(@"error loading: %@", error.localizeddescription); } @end i can post other relevant code might useful , have full project on github in case wants see code or download , try on xcode yourself.
i here extremely useful me.
Comments
Post a Comment