SGSPopover 0.1.1

SGSPopover 0.1.1

TestsTested
LangLanguage Obj-CObjective C
License MIT
ReleasedLast Release Mar 2017

Maintained by CharlsPrince.



  • By
  • CharlsPrince

Example

To run the example project, clone the repo, and run pod install from the Example directory first.

Requirements

Installation

SGSPopover is available through CocoaPods. To install it, simply add the following line to your Podfile:

pod "SGSPopover"

使用方法


    UILabel *label = [[UILabel alloc] init];
    label.text = @"asdfasdfas";
    [label sizeToFit];
    self.popover = [[SGSPopover alloc] initWithContentView:label];
    self.popover.lineWidth = 5.0f;
    self.popover.lineColor = [UIColor redColor];
    self.popover.fillColor = [UIColor greenColor];
    self.popover.triangleRaduis = 5.0f;
    self.popover.widthEdge = 10.0;
    self.popover.heightEdge = 10.0f;
    self.popover.cornerRadius = 5.0f;
    self.popover.popoverStyle = SGSPopoverStyleLeft;
    [self.view addSubview:self.popover];

Author

CharlsPrince, [email protected]

License

SGSPopover is available under the MIT license. See the LICENSE file for more info.