资源简介

陌陌聊天软件(客户端+服务器端+数据库)源码

资源截图

代码片段和文件信息

//
//  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  2013-09-08 21:46  陌陌客户端+服务端ios源代码\
     目录           0  2013-06-16 22:55  陌陌客户端+服务端ios源代码\仿陌陌的客户端前台\
     目录           0  2012-07-18 18:04  陌陌客户端+服务端ios源代码\仿陌陌的客户端前台\Dache-0718\
     文件       12292  2012-10-10 09:23  陌陌客户端+服务端ios源代码\仿陌陌的客户端前台\Dache-0718\.DS_Store
     目录           0  2012-07-18 18:04  陌陌客户端+服务端ios源代码\仿陌陌的客户端前台\Dache-0718\dache.xcodeproj\
     文件      421975  2012-07-18 17:07  陌陌客户端+服务端ios源代码\仿陌陌的客户端前台\Dache-0718\dache.xcodeproj\project.pbxproj
     目录           0  2012-07-18 18:04  陌陌客户端+服务端ios源代码\仿陌陌的客户端前台\Dache-0718\dache.xcodeproj\project.xcworkspace\
     文件         150  2012-07-04 13:03  陌陌客户端+服务端ios源代码\仿陌陌的客户端前台\Dache-0718\dache.xcodeproj\project.xcworkspace\contents.xcworkspacedata
     目录           0  2012-07-10 09:56  陌陌客户端+服务端ios源代码\仿陌陌的客户端前台\Dache-0718\dache.xcodeproj\project.xcworkspace\xcshareddata\
     文件         263  2012-07-10 09:56  陌陌客户端+服务端ios源代码\仿陌陌的客户端前台\Dache-0718\dache.xcodeproj\project.xcworkspace\xcshareddata\WorkspaceSettings.xcsettings
     目录           0  2012-07-18 18:04  陌陌客户端+服务端ios源代码\仿陌陌的客户端前台\Dache-0718\dache.xcodeproj\project.xcworkspace\xcuserdata\
     目录           0  2012-04-06 16:52  陌陌客户端+服务端ios源代码\仿陌陌的客户端前台\Dache-0718\dache.xcodeproj\project.xcworkspace\xcuserdata\cs.xcuserdatad\
     文件       31770  2012-04-06 16:52  陌陌客户端+服务端ios源代码\仿陌陌的客户端前台\Dache-0718\dache.xcodeproj\project.xcworkspace\xcuserdata\cs.xcuserdatad\UserInterfaceState.xcuserstate
     目录           0  2012-07-18 17:20  陌陌客户端+服务端ios源代码\仿陌陌的客户端前台\Dache-0718\dache.xcodeproj\project.xcworkspace\xcuserdata\Fanshuai.xcuserdatad\
     文件      228052  2012-07-18 17:20  陌陌客户端+服务端ios源代码\仿陌陌的客户端前台\Dache-0718\dache.xcodeproj\project.xcworkspace\xcuserdata\Fanshuai.xcuserdatad\UserInterfaceState.xcuserstate
     目录           0  2011-11-27 02:28  陌陌客户端+服务端ios源代码\仿陌陌的客户端前台\Dache-0718\dache.xcodeproj\project.xcworkspace\xcuserdata\hanguoxiang.xcuserdatad\
     文件     1002546  2011-11-27 02:28  陌陌客户端+服务端ios源代码\仿陌陌的客户端前台\Dache-0718\dache.xcodeproj\project.xcworkspace\xcuserdata\hanguoxiang.xcuserdatad\UserInterfaceState.xcuserstate
     目录           0  2012-10-10 09:23  陌陌客户端+服务端ios源代码\仿陌陌的客户端前台\Dache-0718\dache.xcodeproj\project.xcworkspace\xcuserdata\zengchao.xcuserdatad\
     文件     1688959  2012-10-10 09:23  陌陌客户端+服务端ios源代码\仿陌陌的客户端前台\Dache-0718\dache.xcodeproj\project.xcworkspace\xcuserdata\zengchao.xcuserdatad\UserInterfaceState.xcuserstate
     文件         711  2012-03-05 10:16  陌陌客户端+服务端ios源代码\仿陌陌的客户端前台\Dache-0718\dache.xcodeproj\project.xcworkspace\xcuserdata\zengchao.xcuserdatad\WorkspaceSettings.xcsettings
     目录           0  2012-07-10 09:56  陌陌客户端+服务端ios源代码\仿陌陌的客户端前台\Dache-0718\dache.xcodeproj\xcshareddata\
     目录           0  2012-07-10 09:56  陌陌客户端+服务端ios源代码\仿陌陌的客户端前台\Dache-0718\dache.xcodeproj\xcshareddata\xcschemes\
     目录           0  2012-07-18 18:04  陌陌客户端+服务端ios源代码\仿陌陌的客户端前台\Dache-0718\dache.xcodeproj\xcuserdata\
     目录           0  2012-07-18 18:04  陌陌客户端+服务端ios源代码\仿陌陌的客户端前台\Dache-0718\dache.xcodeproj\xcuserdata\cs.xcuserdatad\
     目录           0  2012-04-06 09:08  陌陌客户端+服务端ios源代码\仿陌陌的客户端前台\Dache-0718\dache.xcodeproj\xcuserdata\cs.xcuserdatad\xcdebugger\
     文件          91  2012-04-06 09:08  陌陌客户端+服务端ios源代码\仿陌陌的客户端前台\Dache-0718\dache.xcodeproj\xcuserdata\cs.xcuserdatad\xcdebugger\Breakpoints.xcbkptlist
     目录           0  2012-07-18 18:04  陌陌客户端+服务端ios源代码\仿陌陌的客户端前台\Dache-0718\dache.xcodeproj\xcuserdata\cs.xcuserdatad\xcschemes\
     文件        3104  2012-03-31 12:39  陌陌客户端+服务端ios源代码\仿陌陌的客户端前台\Dache-0718\dache.xcodeproj\xcuserdata\cs.xcuserdatad\xcschemes\CMPayClient.xcscheme
     文件         483  2012-03-31 12:39  陌陌客户端+服务端ios源代码\仿陌陌的客户端前台\Dache-0718\dache.xcodeproj\xcuserdata\cs.xcuserdatad\xcschemes\xcschememanagement.plist
     目录           0  2012-07-18 18:04  陌陌客户端+服务端ios源代码\仿陌陌的客户端前台\Dache-0718\dache.xcodeproj\xcuserdata\Fanshuai.xcuserdatad\
     目录           0  2012-07-18 17:20  陌陌客户端+服务端ios源代码\仿陌陌的客户端前台\Dache-0718\dache.xcodeproj\xcuserdata\Fanshuai.xcuserdatad\xcdebugger\
............此处省略2955个文件信息

评论

共有 条评论