Latest 1.0.1
Homepage https://github.com/ziooooo/Dinas
License MIT
Platforms ios 6.0, requires ARC
Authors

Build your view’s frame, like Masonry.

Installation

Use CocoaPods.

In your Podfile

pod 'Dinas'

Or download and copy Dinas to your project

How to use

It will be very simple for you if you used Masnory.

UIView *head = [[UIView alloc] init];
head.backgroundColor = [UIColor blackColor];
[self.view addSubview:head];
[head din_makeStructures:^(DINStructureMaker *make) {
    make.centerX.equalTo(self.view);
    make.top.equalToSuperview().offset(100);
    make.size.din_equalTo(CGSizeMake(200, 200));
}];

Before din_makeStructures.. must has superview

Implementation effect

effect

Latest podspec

{
    "name": "Dinas",
    "version": "1.0.1",
    "summary": "Build your view's frame, like Masonry.",
    "description": "Build your view's frame, like Masonry...",
    "homepage": "https://github.com/ziooooo/Dinas",
    "license": "MIT",
    "authors": {
        "ziooooo": "[email protected]"
    },
    "source": {
        "git": "https://github.com/ziooooo/Dinas.git",
        "tag": "1.0.1"
    },
    "source_files": "Dinas/Dinas/*.{h,m}",
    "ios": {
        "frameworks": [
            "Foundation",
            "UIKit"
        ]
    },
    "platforms": {
        "ios": "6.0"
    },
    "requires_arc": true
}

Pin It on Pinterest

Share This