iphone-common-codes-ccteam源代码 CCUIToolBar.m
# //
# // CCUIToolbar.m
# // CCFC
# //
# // Created by xichen on 12-1-3.
# // Copyright 2012 ccteam. All rights reserved.
# //
#
# #import "CCUIToolBar.h"
#
#
# @implementation UIToolbar(cc)
#
# // create a common toolbar
# + (UIToolbar *)createCommonToolbar:(CGRect)rect items:(NSArray *)buttonItemArr
# {
# UIToolbar *toolbar = [[UIToolbar alloc] initWithFrame:rect];
# [toolbar setItems:buttonItemArr animated:YES];
#
# return [toolbar autorelease];
# }
#
# @end
可能有更新:
googlecode链接地址:http://code.google.com/p/iphone-common-codes-ccteam/source/browse/trunk/CCFC/files/CCUIToolBar.m
github地址: https://github.com/cxsjabc/iphone-common-codes-ccteam/tree/master/CCFC/files/CCUIToolBar.m