Latest 0.1.0
Homepage https://github.com/MoathOthman/MoStoreButton
License MIT
Platforms ios , requires ARC
Authors

MoStoreButton

simple-to-use iOS 7 Appstore like button

Requirements

  • Xcode 5
  • iOS 7.0 +
  • ARC

Screen shot

screenShot

INSTALL

Manual

you can drag and drop the MOStoreButton class into your project

CocoaPods

Add
pod 'MOStoreButton'

USAGE

Adding the Button

Here we should set the titles,finishedDownloadingButtonTitle, and buttonDelegate !!!.

MOStoreButton*storeButton1 =[[MOStoreButton alloc]initWithFrame:CGRectMake(100, 260,80, 40) andColor:[UIColor blueColor]];

storeButton1.buttonDelegate=self;
storeButton1.titleLabel.font =[UIFont systemFontOfSize:17];
storeButton1.finishedDownloadingButtonTitle [email protected]"Open";
[storeButton1 setTitles:@[@"free",@"INSTALL"]];
[self.view addSubview:storeButton1]; 

Delegate

We Care here about the currentIndex which determine the state of the button transition, see the demo for more clarification

-(void)storeButtonFired:(MOStoreButton *)button{

NSLog(@"click  %i",button.currentIndex);

}

Latest podspec

{
    "name": "MOStoreButton",
    "version": "0.1.0",
    "summary": "AppStore alike download/buy/open button",
    "homepage": "https://github.com/MoathOthman/MoStoreButton",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": {
        "Moath Othman": "[email protected]"
    },
    "source": {
        "git": "https://github.com/MoathOthman/MoStoreButton.git",
        "tag": "0.1.0"
    },
    "source_files": "MOStoreButton/*.{m,h}",
    "requires_arc": true,
    "platforms": {
        "ios": null
    }
}

Pin It on Pinterest

Share This