資源簡(jiǎn)介
移動(dòng)編程 拼車軟件 源碼 計(jì)劃書(shū) 需求分析 Android 移動(dòng)編程 拼車軟件 源碼 計(jì)劃書(shū) 需求分析 Android

代碼片段和文件信息
//
//??AppRec.m
//??MOMO
//
//??Created?by?apple?on?12-7-2.
//??Copyright?(c)?2012年?My?Company.?All?rights?reserved.
//??QQ:1490724
#import?“AppRec.h“
#import?“Appxmlparser.h“
@implementation?AppRec
@synthesize?arrayrequest;
@synthesize?tableview;
-?(id)initWithNibName:(NSString?*)nibNameOrNil?bundle:(NSBundle?*)nibBundleOrNil
{
????self?=?[super?initWithNibName:nibNameOrNil?bundle:nibBundleOrNil];
????if?(self)?{
????????//?Custom?initialization
????}
????return?self;
}
-?(void)didReceiveMemoryWarning
{
????//?Releases?the?view?if?it?doesn‘t?have?a?superview.
????[super?didReceiveMemoryWarning];
????
????//?Release?any?cached?data?images?etc?that?aren‘t?in?use.
}
#pragma?mark?-?View?lifecycle
-(void)addHUD{
//????HUD?=?[[MBProgressHUD?alloc]?initWithView:self.navigationController.view];
//????[self.navigationController.view?addSubview:HUD];
//????HUD.dimBackground?=?YES;
//????HUD.delegate?=?self;
//????HUD.labelText?=?@““;
//????[HUD?showWhileExecuting:@selector(loadBlackList)?onTarget:self?withobject:nil?animated:YES];
????[self?loadBlackList];
????
}
-(void)loadBlackList{
????NSURL?*url=[NSURL?URLWithString:@“http://itunes.apple.com/cn/rss/topfreeapplications/limit=25/xml“];
[self?setRequest:[ASIHTTPRequest?requestWithURL:url]];
//[request?addRequestHeader:@“User-Agent“?value:@“ASIHTTPRequest“];
[request?startSynchronous];
????if?(request)?{
????????if?([request?error])?{
????????????NSString?*result?=?[[request?error]?localizedDescription];
????????????UIAlertView?*alertView?=?[[UIAlertView?alloc]?initWithtitle:@“溫馨提示“?message:result?delegate:self?cancelButtontitle:@“確定“?otherButtontitles:nil?nil];
????????????[alertView?show];
????????????[alertView?release];
????????????
????????}?else?if?([request?responseData]){
????????????NSData?*data=[request?responseData];
????????????NSString?*result?=?[[NSString?alloc]?initWithData:data?encoding:NSUTF8StringEncoding];
????????????//NSLog(@“%@“result);
????????????Appxmlparser?*appxml=[[Appxmlparser?alloc]?init];
????????????[appxml?parserxmlForString:result];
????????????self.array=appxml.array;
????????????[appxml?release];
????????????[result?release];
????????????[tableview?reloadData];
????????}
????}
}
-?(void)viewDidLoad
{
????[self?addHUD];
????[super?viewDidLoad];
????
????UIImage?*imgHeaderBg?=?[UIImage?imageNamed:@“banner01“];??
????if([self.navigationController.navigationBar?respondsToSelector:@selector(setBackgroundImage:forBarMetrics:)])?
????{
????????[self.navigationController.navigationBar?setBackgroundImage:imgHeaderBg?forBarMetrics:UIBarMetricsDefault];
????}
????
????self.title?=?@“精品APP推薦“;
????array=[[NSMutableArray?alloc]?init];
????queue=[[NSOperationQueue?alloc]?init];
????dict=[[NSMutableDictionary?alloc]?init];
????tableview=[[UITableView?alloc]?initWithframe:self.view.bounds?style:UITableViewstylePlain];
????tableview.delegate=self;
????tableview.dataSource=self;
????[self.view?addSubview:tableview];
}
-(void)dealloc{
????[super?dealloc];
????[queue?release]
?屬性????????????大小?????日期????時(shí)間???名稱
-----------?---------??----------?-----??----
?????目錄???????????0??2012-07-18?18:04??Dache-0718\
?????文件???????12292??2012-10-10?09:23??Dache-0718\.DS_Store
?????目錄???????????0??2012-10-10?09:23??__MACOSX\
?????目錄???????????0??2012-10-10?09:23??__MACOSX\Dache-0718\
?????文件?????????229??2012-10-10?09:23??__MACOSX\Dache-0718\._.DS_Store
?????目錄???????????0??2012-07-18?18:04??Dache-0718\dache.xcodeproj\
?????文件??????421975??2012-07-18?17:07??Dache-0718\dache.xcodeproj\project.pbxproj
?????目錄???????????0??2012-10-10?09:23??__MACOSX\Dache-0718\dache.xcodeproj\
?????文件?????????229??2012-07-18?17:07??__MACOSX\Dache-0718\dache.xcodeproj\._project.pbxproj
?????目錄???????????0??2012-07-18?18:04??Dache-0718\dache.xcodeproj\project.xcworkspace\
?????文件?????????150??2012-07-04?13:03??Dache-0718\dache.xcodeproj\project.xcworkspace\contents.xcworkspacedata
?????目錄???????????0??2012-10-10?09:23??__MACOSX\Dache-0718\dache.xcodeproj\project.xcworkspace\
?????文件?????????229??2012-07-04?13:03??__MACOSX\Dache-0718\dache.xcodeproj\project.xcworkspace\._contents.xcworkspacedata
?????目錄???????????0??2012-07-10?09:56??Dache-0718\dache.xcodeproj\project.xcworkspace\xcshareddata\
?????文件?????????263??2012-07-10?09:56??Dache-0718\dache.xcodeproj\project.xcworkspace\xcshareddata\WorkspaceSettings.xcsettings
?????目錄???????????0??2012-10-10?09:23??__MACOSX\Dache-0718\dache.xcodeproj\project.xcworkspace\xcshareddata\
?????文件?????????229??2012-07-10?09:56??__MACOSX\Dache-0718\dache.xcodeproj\project.xcworkspace\xcshareddata\._WorkspaceSettings.xcsettings
?????文件?????????229??2012-07-10?09:56??__MACOSX\Dache-0718\dache.xcodeproj\project.xcworkspace\._xcshareddata
?????目錄???????????0??2012-07-18?18:04??Dache-0718\dache.xcodeproj\project.xcworkspace\xcuserdata\
?????目錄???????????0??2012-04-06?16:52??Dache-0718\dache.xcodeproj\project.xcworkspace\xcuserdata\cs.xcuserdatad\
?????文件???????31770??2012-04-06?16:52??Dache-0718\dache.xcodeproj\project.xcworkspace\xcuserdata\cs.xcuserdatad\UserInterfaceState.xcuserstate
?????目錄???????????0??2012-10-10?09:23??__MACOSX\Dache-0718\dache.xcodeproj\project.xcworkspace\xcuserdata\
?????目錄???????????0??2012-10-10?09:23??__MACOSX\Dache-0718\dache.xcodeproj\project.xcworkspace\xcuserdata\cs.xcuserdatad\
?????文件?????????229??2012-04-06?16:52??__MACOSX\Dache-0718\dache.xcodeproj\project.xcworkspace\xcuserdata\cs.xcuserdatad\._UserInterfaceState.xcuserstate
?????文件?????????229??2012-04-06?16:52??__MACOSX\Dache-0718\dache.xcodeproj\project.xcworkspace\xcuserdata\._cs.xcuserdatad
?????目錄???????????0??2012-07-18?17:20??Dache-0718\dache.xcodeproj\project.xcworkspace\xcuserdata\Fanshuai.xcuserdatad\
?????文件??????228052??2012-07-18?17:20??Dache-0718\dache.xcodeproj\project.xcworkspace\xcuserdata\Fanshuai.xcuserdatad\UserInterfaceState.xcuserstate
?????目錄???????????0??2012-10-10?09:23??__MACOSX\Dache-0718\dache.xcodeproj\project.xcworkspace\xcuserdata\Fanshuai.xcuserdatad\
?????文件?????????229??2012-07-18?17:20??__MACOSX\Dache-0718\dache.xcodeproj\project.xcworkspace\xcuserdata\Fanshuai.xcuserdatad\._UserInterfaceState.xcuserstate
?????文件?????????229??2012-07-18?17:20??__MACOSX\Dache-0718\dache.xcodeproj\project.xcworkspace\xcuserdata\._Fanshuai.xcuserdatad
?????目錄???????????0??2011-11-27?02:28??Dache-0718\dache.xcodeproj\project.xcworkspace\xcuserdata\hanguoxiang.xcuserdatad\
............此處省略2900個(gè)文件信息
評(píng)論
共有 條評(píng)論