All Projects → sonsongithub → Popupview

sonsongithub / Popupview

Licence: other
PopupView for iOS, like UICalloutView. BSD License.

PopupView======= License=======BSD License.

Supplementary document======= For implementation, PDF file is here. (First appearance, 技術評論社刊 Software Design 2011年6月号)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

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].