音频项目思路整理

_bIsPlaying=!_bIsPlaying;  //真真假假

  

NSObject<IAudioProtocol>* _protocol;    //协议,类似接口
@interface UIImage (UIImageExt)    //类别,类似扩展

  

CustomUser * user=[[[CustomUser alloc] init] autorelease];   //实体化对象
        user._id=[[[key valueForKey:@"user"] valueForKey:@"id"] intValue];
        user._screen_name=[[key valueForKey:@"user"] valueForKey:@"screen_name"];
        user._name=[[key valueForKey:@"user"] valueForKey:@"name"];

 

static NSString *favCellIdentifier = @"AudioPlayTableViewCell"; //xib化cell
	
	AudioPlayTableViewCell *cell=(AudioPlayTableViewCell *)[tableView 
                                            dequeueReusableCellWithIdentifier:favCellIdentifier];
	if (cell == nil) {
        
        UIViewController* c = [[UIViewController alloc]
							   initWithNibName:favCellIdentifier bundle:nil]; 
		cell = (AudioPlayTableViewCell *)c.view;  
        [cell cellInit];
        [c release];       
        
	}	
	      
	cell._slider.backgroundColor = [UIColor clearColor]; 
        cell._protocol=self;   
        cell.tag=indexPath.section;
        cell._lblTitle.text=[[self._tableData objectAtIndex:indexPath.section] _text];

  

#define ADDLEFTBTN(CTLR,IMG,TITLE,SEL)\    //变量化自定义代码
{\
UIBarButtonItem* leftbackButtonItem=[UIBarButtonItem customForNav:CTLR \
    image:IMG \
    title:TITLE \
    action:SEL]; \
self.navigationItem.leftBarButtonItem=leftbackButtonItem;\
}

  

.plist文件中添加       Main nib file base name           //设置起始页面的另一种方法

  

FMDB          //数据库sqlite3封装库

  

自定义分装的几个对象:
proAlertView,
CustomSegmentedControl,
TKProgressCircleView,
UICustomSwitch,

UIImage+Scale,
UIImage-Alpha,
UIImageLoadManager,

UIBarButtonItem+CustomForNav
UINavigationBar-CustomImage

UITabBar-CustomImage

  

  

posted @ 2012-03-02 11:59  威尚  阅读(354)  评论(0编辑  收藏  举报