• 大小: 4.53MB
    文件类型: .zip
    金币: 1
    下载: 0 次
    发布日期: 2023-10-28
  • 语言: Java
  • 标签: 拼车软件  

资源简介

移动编程 拼车软件 源码 计划书 需求分析 Android 移动编程 拼车软件 源码 计划书 需求分析 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]

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     目录           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个文件信息

评论

共有 条评论

相关资源