PopupView for iOS, like UICalloutView. BSD License.
Switch branches/tags
Nothing to show
Pull request Compare This branch is 14 commits behind sonsongithub:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
PopupViewTest.xcodeproj
PopupViewTest
.gitignore
LICENSE
README.md
SNPopupView.h
SNPopupView.m

README.md

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