Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/midnightsuyama/masu
Placeholder for iOS prototyping
https://github.com/midnightsuyama/masu
Last synced: about 1 month ago
JSON representation
Placeholder for iOS prototyping
- Host: GitHub
- URL: https://github.com/midnightsuyama/masu
- Owner: midnightSuyama
- License: mit
- Created: 2014-07-25T23:00:08.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2014-09-16T17:03:33.000Z (over 10 years ago)
- Last Synced: 2024-11-09T04:46:35.641Z (about 1 month ago)
- Language: Objective-C
- Size: 333 KB
- Stars: 57
- Watchers: 2
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Masu
[![CI Status](http://img.shields.io/travis/midnightSuyama/Masu.svg?style=flat)](https://travis-ci.org/midnightSuyama/Masu)
[![Version](https://img.shields.io/cocoapods/v/Masu.svg?style=flat)](http://cocoadocs.org/docsets/Masu)
[![License](https://img.shields.io/cocoapods/l/Masu.svg?style=flat)](http://cocoadocs.org/docsets/Masu)
[![Platform](https://img.shields.io/cocoapods/p/Masu.svg?style=flat)](http://cocoadocs.org/docsets/Masu)Placeholder for iOS prototyping
![Screenshot](./screenshot.png)
## Usage
To run the example project, clone the repo, and run `pod install` from the Example directory first.
``` objective-c
// UIView demo
Masu *masu = [[Masu alloc] initWithFrame:CGRectMake(0, 300.0f, 220.0f, 100.0f)];
masu.backgroundColor = [UIColor colorWithRed:0 green:0.5f blue:0.5f alpha:1];
masu.text = @"View";
[self.view addSubview:masu];// UIImage demo
UIButton *btn = [UIButton buttonWithType:UIButtonTypeCustom];
[btn setFrame:CGRectMake(220.0f, 300.0f, 100.0f, 100.0f)];
[btn setImage:[Masu imageWithSize:btn.frame.size backgroundColor:[UIColor grayColor] labelText:@"Button"] forState:UIControlStateNormal];
[self.view addSubview:btn];
```### Category
``` objective-c
[view showMasu];
```## Installation
Masu is available through [CocoaPods](http://cocoapods.org). To install
it, simply add the following line to your Podfile:pod "Masu"
## Author
midnightSuyama, [email protected]
## License
Masu is available under the MIT license. See the LICENSE file for more info.