{"id":15562768,"url":"https://github.com/sonsongithub/popupview","last_synced_at":"2025-10-09T11:35:02.461Z","repository":{"id":66551749,"uuid":"1500342","full_name":"sonsongithub/PopupView","owner":"sonsongithub","description":"PopupView for iOS, like UICalloutView. BSD License.","archived":false,"fork":false,"pushed_at":"2020-02-29T11:06:42.000Z","size":899,"stargazers_count":229,"open_issues_count":1,"forks_count":39,"subscribers_count":10,"default_branch":"master","last_synced_at":"2025-03-31T19:44:10.519Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"http://www.youtube.com/watch?v=K8ZqC4YaLA4","language":"Objective-C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/sonsongithub.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2011-03-19T16:04:41.000Z","updated_at":"2024-12-18T11:57:34.000Z","dependencies_parsed_at":null,"dependency_job_id":"88a0796a-a4b8-476c-b50f-5e750534b7ff","html_url":"https://github.com/sonsongithub/PopupView","commit_stats":{"total_commits":38,"total_committers":2,"mean_commits":19.0,"dds":"0.10526315789473684","last_synced_commit":"24c66f3faf3f6c4f10eea70b54f3e1fa37d2f8f6"},"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sonsongithub%2FPopupView","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sonsongithub%2FPopupView/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sonsongithub%2FPopupView/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sonsongithub%2FPopupView/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sonsongithub","download_url":"https://codeload.github.com/sonsongithub/PopupView/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253166521,"owners_count":21864482,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-02T16:16:13.843Z","updated_at":"2025-10-09T11:34:57.441Z","avatar_url":"https://github.com/sonsongithub.png","language":"Objective-C","funding_links":[],"categories":[],"sub_categories":[],"readme":"PopupView\r=======\n\u003cimg src=\"https://cloud.githubusercontent.com/assets/33768/9287116/48440620-4341-11e5-9c92-c9b93330a048.png\" width=\"50%\"\u003e\n\rLicense\r=======\rBSD License.\n\nSupplementary document\r=======\nFor implementation, PDF file is [here](https://raw.githubusercontent.com/sonsongithub/PopupView/master/sd201206.pdf). (First appearance, 技術評論社刊 Software Design 2011年6月号)\r\rSNPopupView Reference\r=======\r\t- (id)initWithString:(NSString*)newValue;\r###Parameters\r####newValue\rThre string to display as title in the popup.\r###Return value\rAn initialized popup.\r###Discussion\rThis method uses default title's font size. If you want to set own font size for title, you should use initWithString:withFontOfSize:.\r\r\t- (id)initWithString:(NSString*)newValue withFontOfSize:(float)newFontSize;\r###Parameters\r####newValue\rThre string to display as title in the popup.\r####newFontSize\rThe point size of the font for title.\r###Return value\rAn initialized popup.\r###Discussion\rThis 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.\r\t\r\t- (id)initWithImage:(UIImage*)newImage;\r###Parameters\r####newImage\rThe image to display in the popup.\r###Return value\rAn initialized popup.\r###Discussion\rNone.\r\r\t- (id)initWithContentView:(UIView*)newContentView contentSize:(CGSize)contentSize;\r###Parameters\r####newContentView\rThe new view whose content should be displayed by popup.\r####contentSize\rThe new size to apply to the content view.\r###Return value\rAn initialized popup.\r###Discussion\rNone.\r\r\t- (void)showAtPoint:(CGPoint)p inView:(UIView*)inView;\r###Parameters\r####p\rThe position to display popup withing the coordinate system of popup's superview, that is inView. Popup anchors at this point.\r####inView\rThe view to set as popup' superview.\r###Discussion\rNone.\r\r\t- (void)showAtPoint:(CGPoint)p inView:(UIView*)inView animated:(BOOL)animated;\r###Parameters\r####p\rThe position to display popup withing the coordinate system of popup's superview, that is inView. Popup anchors at this point.\r####inView\rThe view to contain popup.\r####animated\rSpecify YES to show it with animation, NO to show it immediately.\r###Discussion\rNone.\r\t\r\t- (void)dismiss;\r###Discussion\rDismiss popup with animation.\r\r\t- (void)dismiss:(BOOL)animtaed;\r###Parameters\r####animated\rSpecify YES to dimiss it with animation, NO to dimiss it immediately.\r###Discussion\rNone.\r\r\t- (void)addTarget:(id)target action:(SEL)action;\r###Prameters\r####target\rThe 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.\r####action\rA selector identifying an action message. It cannot be NULL.\r###Discussion\r\rSNPopupView Reference - Using Private Method Addition.\r=======\r\t- (void)showFromBarButtonItem:(UIBarButtonItem*)barButtonItem inView:(UIView*)inView;\r###Parameters\r####barButtonItem\rThe bar button item on which to anchor the popup.\r####inView\rThe view to contain popup.\r###Discussion\rThis method uses a private method of UIBarButtonItem. Take care when submit your applicaiton that uses this method.\r\r\t- (void)showFromBarButtonItem:(UIBarButtonItem*)barButtonItem inView:(UIView*)inView animated:(BOOL)animated;\r###Parameters\r####barButtonItem\rThe bar button item on which to anchor the popup.\r####inView\rThe view to contain popup.\r####animated\rSpecify YES to show it with animation, NO to show it immediately.\r###Discussion\rThis method uses a private method of UIBarButtonItem. Take care when submit your applicaiton that uses this method.\r\rProperties\r======\r###title\rThe receiver's title string value.\r\r\t@property(nonatomic, readonly) NSString *title;\r###Discussion\rNone.\r\r###image\rThe receiver's image value.\r\r\t@property(nonatomic, readonly) UIImage *image;\r###Discussion\rNone.\r\r###contentView\rThe receiver's content view.\r\r\t@property(nonatomic, readonly) UIView *contentView;\r###Discussion\r\rBlog\r=======\r * [sonson.jp][]\rSorry, Japanese only....\r\rDependency\r=======\r * none\r\r[sonson.jp]: http://sonson.jp\r","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsonsongithub%2Fpopupview","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsonsongithub%2Fpopupview","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsonsongithub%2Fpopupview/lists"}