• Stars
    star
    230
  • Rank 174,053 (Top 4 %)
  • Language
    Objective-C
  • License
    Other
  • Created over 13 years ago
  • Updated over 4 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

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 ####newValue Thre string to display as title in the popup. ###Return value An initialized popup. ###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 Thre string to display as title in the popup. ####newFontSize The point size of the font for title. ###Return value An initialized popup. ###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 The image to display in the popup. ###Return value An initialized popup. ###Discussion None.

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

###Parameters ####newContentView The new view whose content should be displayed by popup. ####contentSize The new size to apply to the content view. ###Return value An initialized popup. ###Discussion None.

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

###Parameters ####p The position to display popup withing the coordinate system of popup's superview, that is inView. Popup anchors at this point. ####inView The view to set as popup' superview. ###Discussion None.

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

###Parameters ####p The position to display popup withing the coordinate system of popup's superview, that is inView. Popup anchors at this point. ####inView The view to contain popup. ####animated Specify YES to show it with animation, NO to show it immediately. ###Discussion None.

- (void)dismiss;

###Discussion Dismiss popup with animation.

- (void)dismiss:(BOOL)animtaed;

###Parameters ####animated Specify YES to dimiss it with animation, NO to dimiss it immediately. ###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

SNPopupView Reference - Using Private Method Addition.

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

###Parameters ####barButtonItem The bar button item on which to anchor the popup. ####inView The view to contain popup. ###Discussion This 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 ####barButtonItem The bar button item on which to anchor the popup. ####inView The view to contain popup. ####animated Specify YES to show it with animation, NO to show it immediately. ###Discussion This method uses a private method of UIBarButtonItem. Take care when submit your applicaiton that uses this method.

Properties

###title The receiver's title string value.

@property(nonatomic, readonly) NSString *title;

###Discussion None.

###image The receiver's image value.

@property(nonatomic, readonly) UIImage *image;

###Discussion None.

###contentView The receiver's content view.

@property(nonatomic, readonly) UIView *contentView;

###Discussion

Blog

Dependency

  • none

More Repositories

1

CoreAR

AR(Augmented reality) framework for iOS, based on a visual code like ARToolKit
C
253
star
2

reddift

Swift Reddit API Wrapper
Swift
242
star
3

numsw

Swift library like numpy, playgrounds notebook like jupyter.
Swift
134
star
4

AAKeyboard

ASCI Art Keyboard
Objective-C
106
star
5

iOSCameraImageProcessing

Real time image processing framework for iOS
Objective-C
103
star
6

Quartz-Help-Library

Quartz Help Library for iOS, for image processing on iOS.
Objective-C
50
star
7

llvm-tutorial

LLVM Tutorialใ‚’ๅ‹‰ๅผทใ™ใ‚‹ใƒชใƒใ‚ธใƒˆใƒช
C++
45
star
8

HomeConMenu

App to control HomeKit Devices from macOS system
Swift
44
star
9

UZTextView

Clickable and selectable text view for iOS
HTML
40
star
10

OpenCV-Help-Library

OpenCV Help Library for iOS
Objective-C
26
star
11

iCloudSample

Objective-C
22
star
12

EvernoteAPI

Simple Evernote API management class for iOS.
Objective-C
21
star
13

IntroduceCollectionView

Getting started UICollectionView
20
star
14

YouTubeGetVideoInfoAPIParser

Swift Library to parse YouTube streaming data from get_video_info API.
Swift
18
star
15

UZMultipleLayeredPopoverController

Objective-C
17
star
16

museum2tch

2tchๅš็‰ฉ้คจ
Objective-C
16
star
17

HTMLSpecialCharacters

Library to escape/unescape HTML special characters in Swift.
Swift
16
star
18

PlayPixels

Swift Playground Book for learning image processing.
Swift
16
star
19

iCloudFileSharing

Objective-C
13
star
20

iOS_OpenCV_build_script

This is a project for building OpenCV for iOS
Objective-C
12
star
21

SBMeter

This application receives data from the SwitchBot meter via Bluetooth LE and displays it in the menu bar for macOS.
Swift
9
star
22

sonson

sonson's iPhone source codes
Ruby
8
star
23

UZImageCollection

Image collection view controller like Photo.app.
Swift
7
star
24

HandoffSample

Objective-C
6
star
25

SNStatusBarView

Blinking statusbar
Objective-C
6
star
26

AirFollow

Objective-C
5
star
27

llvm_jit_compile

Try to "Just In Time" compile using LLVM.
C++
5
star
28

AnonyFollow

Application to collecting friends of Twitter using anonymous-communication.
Objective-C
5
star
29

RMBluteooth

Bluetooth library for ROMO
Objective-C
4
star
30

hideHere

Objective-C
4
star
31

UZInputCandidateAccessory

Keyboard input accessory view that displays some candidates for a word.
Objective-C
4
star
32

MacCatalystWithAppKit

Build a Mac Catalyst application with AppKit
Swift
4
star
33

CommonCrypto

Framework to include "CommonCrypto.h" for Swift
3
star
34

iOSLegacyCodes

Objective-C
3
star
35

ProvidingDirections

New feature - Providing directions for iOS6
Objective-C
3
star
36

StoreSales

Objective-C
3
star
37

CameraPlaygrounds

Swift Playgrounds Book for image processing programming using iPad's camera.
Swift
3
star
38

swiftodon

2
star
39

ATNDEasy

Objective-C
2
star
40

iOS6_2PainViewController

Best example of container view to implement 2 pain views in one view controller.
Objective-C
2
star
41

WaveFrontObjectLoader

I want to improve the good project, WaveFrontObjectLoader. Original project is http://code.google.com/p/iphonewavefrontloader/.
Objective-C
2
star
42

Markdown

Convert text into html that looks like github.
Perl
2
star
43

StudyWatch

Swift
2
star
44

SoftwareDesignSonson

source code for monthly Software Design Magazine
Objective-C
2
star
45

SNProxyDetector

Class to detect system proxy setting.
Objective-C
1
star
46

auto.gitconfig.proxy

Automatic onfiguration gitconfig' proxy setting for OSX
Shell
1
star
47

SNReachability

Network reachability check class for iOS
Objective-C
1
star
48

SweepDesk

Temporarily hides desktop files.
Swift
1
star
49

InspectCoreText

Objective-C
1
star
50

testFoldr

foldr implementaion in Swift
Swift
1
star
51

midi-swift-code

Swift code to use CoreMIDI
Swift
1
star
52

UntarLight

A light and elementary library to extract the structure and each files in a tar file in Swift
Swift
1
star
53

zipr

Reader for a zip file including only image files.
Swift
1
star
54

spbuilder

Swift Playgrounds Book Builder
Swift
1
star
55

F2-210

Scripts, documents and config files for F2-210.
Shell
1
star
56

TodayWidgetSample

Objective-C
1
star
57

zipreview

Quick Look Plugins for an archive file.
Swift
1
star
58

CloudKitSample

Objective-C
1
star
59

StringIconv

Decode bytes array to String using iconv.
Swift
1
star