iphone-common-codes-ccteam源代码 CCUICalloutView.h

//  
// CCUICalloutView.h
// CCFC
//
// Created by xichen on 11-12-23.
// Copyright 2011 ccteam. All rights reserved.
//


#import <Foundation/Foundation.h>


// a demo
/*

.h:
UICalloutView *_callout;

- (void)hideDisclosure
{
[_callout fadeOutWithDuration:0.1f];
}

- (void)xxxx
{
_callout = [[UICalloutView alloc] initWithFrame:CGRectZero];
_callout.contentVerticalAlignment = UIControlContentVerticalAlignmentCenter;
_callout.contentHorizontalAlignment = UIControlContentHorizontalAlignmentCenter;
[_callout setTitle:@"More Info..."];
[_callout addTarget:self action:@selector(hideDisclosure)];
[self.view addSubview:_callout];

// the line below must be put after addSubview, or the view won't appear.
[_callout setAnchorPoint:CGPointMake(160, 200) boundaryRect:CGRectMake(0.0f, 0.0f, 320.0f, 100.0f) animate:YES];

[_callout release];
}
*/


#if CC_ENABLE_PRIVATE_API && CC_COMPILE_PRIVATE_CLASS


@interface UICalloutView : UIView
{


}


@end


@interface UICalloutView(cc)


// set the anchor point info
- (void)setAnchorPoint:(CGPoint)point
boundaryRect:(CGRect)rect
animate:(BOOL)animated;


- (void)fadeOutWithDuration:(float)time; // fade out within seconds of the argument time


- (void)setTitle:(NSString *)title; // set the title
- (NSString *)title; // get the title
- (void)setSubtitle:(NSString *)subTitle; // set the subtitle
- (NSString *)subtitle; // get the subtitle


@end


#endif

 

可能有更新:

googlecode链接地址:http://code.google.com/p/iphone-common-codes-ccteam/source/browse/trunk/CCFC/files/CCUICalloutView.h

github地址: https://github.com/cxsjabc/iphone-common-codes-ccteam/tree/master/CCFC/files/CCUICalloutView.h

 

posted @ 2012-01-06 09:54  cc_team  阅读(194)  评论(0编辑  收藏  举报