Skip to content

Commit

Permalink
Updated README.md.
Browse files Browse the repository at this point in the history
  • Loading branch information
sonsongithub committed Oct 8, 2011
1 parent e9f52a2 commit 075f046
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1 +1 @@
PopupView=======![sample image](http://sonson.jp/wp/wp-content/uploads/2011/07/popupViewSample1.png)License=======BSD License.SNPopupView Reference======= - (id)initWithString:(NSString*)newValue;###Parameters####newValueThre string to display as title in the popup.###Return valueAn initialized popup.###DiscussionThis 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####newValueThre string to display as title in the popup.####newFontSizeThe point size of the font for title.###Return valueAn initialized popup.###DiscussionThis 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####newImageThe image to display in the popup.###Return valueAn initialized popup.###DiscussionNone. - (id)initWithContentView:(UIView*)newContentView contentSize:(CGSize)contentSize;###Parameters####newContentViewThe new view whose content should be displayed by popup.####contentSizeThe new size to apply to the content view.###Return valueAn initialized popup.###DiscussionNone. - (void)showAtPoint:(CGPoint)p inView:(UIView*)inView;###Parameters####pThe position to display popup withing the coordinate system of popup's superview, that is inView. Popup anchors at this point.####inViewThe view to set as popup' superview.###DiscussionNone. - (void)showAtPoint:(CGPoint)p inView:(UIView*)inView animated:(BOOL)animated;###Parameters####pThe position to display popup withing the coordinate system of popup's superview, that is inView. Popup anchors at this point.####inViewThe view to contain popup.####animatedSpecify YES to show it with animation, NO to show it immediately.###DiscussionNone. - (void)showFromBarButtonItem:(UIBarButtonItem*)barButtonItem inView:(UIView*)inView;###Parameters####barButtonItemThe bar button item on which to anchor the popup.####inViewThe view to contain popup.###DiscussionNone. - (void)showFromBarButtonItem:(UIBarButtonItem*)barButtonItem inView:(UIView*)inView animated:(BOOL)animated;###Parameters####barButtonItemThe bar button item on which to anchor the popup.####inViewThe view to contain popup.####animatedSpecify YES to show it with animation, NO to show it immediately.###DiscussionNone. - (void)dismiss;###DiscussionDismiss popup with animation. - (void)dismiss:(BOOL)animtaed;###Parameters####animatedSpecify YES to dimiss it with animation, NO to dimiss it immediately.###DiscussionNone. - (void)addTarget:(id)target action:(SEL)action;###Prameters####targetThe 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.####actionA selector identifying an action message. It cannot be NULL.###DiscussionProperties======###titleThe receiver's title string value. @property(nonatomic, readonly) NSString *title;###DiscussionNone.###imageThe receiver's image value. @property(nonatomic, readonly) UIImage *image;###DiscussionNone.###contentViewThe receiver's content view. @property(nonatomic, readonly) UIView *contentView;###DiscussionBlog======= * [sonson.jp][]Sorry, Japanese only....Dependency======= * none[sonson.jp]: http://sonson.jp
PopupView=======![sample image](http://sonson.jp/wp/wp-content/uploads/2011/07/popupViewSample1.png)License=======BSD License.SNPopupView Reference======= - (id)initWithString:(NSString*)newValue;###Parameters####newValueThre string to display as title in the popup.###Return valueAn initialized popup.###DiscussionThis 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####newValueThre string to display as title in the popup.####newFontSizeThe point size of the font for title.###Return valueAn initialized popup.###DiscussionThis 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####newImageThe image to display in the popup.###Return valueAn initialized popup.###DiscussionNone. - (id)initWithContentView:(UIView*)newContentView contentSize:(CGSize)contentSize;###Parameters####newContentViewThe new view whose content should be displayed by popup.####contentSizeThe new size to apply to the content view.###Return valueAn initialized popup.###DiscussionNone. - (void)showAtPoint:(CGPoint)p inView:(UIView*)inView;###Parameters####pThe position to display popup withing the coordinate system of popup's superview, that is inView. Popup anchors at this point.####inViewThe view to set as popup' superview.###DiscussionNone. - (void)showAtPoint:(CGPoint)p inView:(UIView*)inView animated:(BOOL)animated;###Parameters####pThe position to display popup withing the coordinate system of popup's superview, that is inView. Popup anchors at this point.####inViewThe view to contain popup.####animatedSpecify YES to show it with animation, NO to show it immediately.###DiscussionNone. - (void)dismiss;###DiscussionDismiss popup with animation. - (void)dismiss:(BOOL)animtaed;###Parameters####animatedSpecify YES to dimiss it with animation, NO to dimiss it immediately.###DiscussionNone. - (void)addTarget:(id)target action:(SEL)action;###Prameters####targetThe 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.####actionA selector identifying an action message. It cannot be NULL.###DiscussionSNPopupView Reference - Using Private Method Addition.======= - (void)showFromBarButtonItem:(UIBarButtonItem*)barButtonItem inView:(UIView*)inView;###Parameters####barButtonItemThe bar button item on which to anchor the popup.####inViewThe view to contain popup.###DiscussionThis method uses a private method of UIBarButtonItem. Take care when submit your applicaiton that uses this method. - (void)showFromBarButtonItem:(UIBarButtonItem*)barButtonItem inView:(UIView*)inView animated:(BOOL)animated;###Parameters####barButtonItemThe bar button item on which to anchor the popup.####inViewThe view to contain popup.####animatedSpecify YES to show it with animation, NO to show it immediately.###DiscussionThis method uses a private method of UIBarButtonItem. Take care when submit your applicaiton that uses this method.Properties======###titleThe receiver's title string value. @property(nonatomic, readonly) NSString *title;###DiscussionNone.###imageThe receiver's image value. @property(nonatomic, readonly) UIImage *image;###DiscussionNone.###contentViewThe receiver's content view. @property(nonatomic, readonly) UIView *contentView;###DiscussionBlog======= * [sonson.jp][]Sorry, Japanese only....Dependency======= * none[sonson.jp]: http://sonson.jp
Expand Down

0 comments on commit 075f046

Please sign in to comment.