Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Branch: master
Fetching contributors…

Cannot retrieve contributors at this time

121 lines (100 sloc) 2.692 kB

PopupView

sample image

License

BSD License.

SNPopupView Reference

- (id)initWithString:(NSString*)newValue;

Parameters

newValue

String value that is the instance's title.

Return value

SNPopupView's instance whose title is specified the above newValue.

Discussion

This method uses default title's font size. If you want to set own font size for title, you should use initWithString:withFontOfSize:.

- (id)initWithString:(NSString*)newValue withFontOfSize:(float)newFontSize;

Parameters

newValue

String value that is the instance's title.

newFontSize

Point size of the font for title.

Return value

SNPopupView's instance whose title is specified the above newValue.

Discussion

This method does not automatically adjust font size of title. Therefore, the title string can go over popup view if you specfy too big font size.

- (id)initWithImage:(UIImage*)newImage;

Parameters

newImage

Image that is used for popup view's content.

Return value

SNPopupView's instance.

Discussion

None.

- (id)initWithContentView:(UIView*)newContentView contentSize:(CGSize)contentSize;

Parameters

newContentView

contentSize

Return value

Discussion

None.

- (void)showAtPoint:(CGPoint)p inView:(UIView*)inView;

Parameters

p

inView

Discussion

None.

- (void)showAtPoint:(CGPoint)p inView:(UIView*)inView animated:(BOOL)animated;

Parameters

p

inView

animated

Discussion

None.

- (void)showFromBarButtonItem:(UIBarButtonItem*)barButtonItem inView:(UIView*)inView;

Parameters

barButtonItem

inView

Discussion

None.

- (void)showFromBarButtonItem:(UIBarButtonItem*)barButtonItem inView:(UIView*)inView animated:(BOOL)animated;

Parameters

barButtonItem

inView

animated

Discussion

None.

- (void)dismiss;

Discussion

None.

- (void)dismiss:(BOOL)animtaed;

Parameters

animated

Discussion

None.

- (void)addTarget:(id)target action:(SEL)action;

Prameters

target

The target object-that is, the object to which the action message is sent. If this is nil, the responder chain is searched for an object willing to respond to the action message.

action

A selector identifying an action message. It cannot be NULL.

Discussion

Properties

title

The receiver's title string value.

@property(nonatomic, readonly) NSString *title;

Discussion

image

The receiver's image value.

@property(nonatomic, readonly) UIImage *image;

Discussion

Blog

Dependency

  • none
Jump to Line
Something went wrong with that request. Please try again.