Latest 0.0.2
Homepage https://github.com/ColorPenBoy/Buoy
License MIT
Platforms ios 7.0, requires ARC
Frameworks Foundation, UIKit
Authors

Buoy

浮标悬浮在ViewController上方,或者UIWindow上方,可以随意拖动,结束拖动后自动靠在边框上。

  • 使用方法:
HSBuoy * buoy = [[HSBuoy alloc]initWithFrame:CGRectMake(100, 100, 50, 50)];
buoy.image = [UIImage imageNamed:@"YourBuoyImageName"];
[buoy clickBuoy:^{
    // Click Buoy Call Back    
    NSLog(@"Click Buoy");        
}];
[self.view addSubview:buoy];

Latest podspec

{
    "name": "HSBuoy",
    "version": "0.0.2",
    "summary": "A Buoy view used on iOS.",
    "homepage": "https://github.com/ColorPenBoy/Buoy",
    "license": "MIT",
    "authors": {
        "ColorPen": "[email protected]"
    },
    "source": {
        "git": "https://github.com/ColorPenBoy/Buoy.git",
        "tag": "0.0.2"
    },
    "platforms": {
        "ios": "7.0"
    },
    "requires_arc": true,
    "source_files": "HSBuoyView/HSBuoy.{h,m}",
    "frameworks": [
        "Foundation",
        "UIKit"
    ]
}

Pin It on Pinterest

Share This