blob: 7ffd940d8320c4ef2b5453d2f52cfef1a0d75c02 [file] [log] [blame]
{
"name": "UIView+Positioning",
"version": "1.0",
"summary": "UIView+Positioning provides shorthand methods to defining the frame properties of any UIView based object in an easy fashion.",
"description": " \tUIView-Positioning\n ================\n **UIView+Positioning** provides easy shorthand methods to defining the frame properties (width, height, x, y) of any UIView based object in an easy fashion, as well as extra helpful properties and methods.\n\n USAGE\n -----\n Just use the properties **x**, **y**, **width**, **height** or use **origin** and **size** to kill two birds with one stone ;-)\n\n ```objc\n UIButton *btnTest; // Or any other view\n\n btnTest.width = 250;\n btnTest.height = 100;\n\n btnTest.y -= 100;\n btnTest.x += 35;\n\n btnTest.centerX = 20;\n btnTest.centerY = 15;\n\n btnTest.size = CGSizeMake(150, 70);\n btnTest.origin = CGPointMake(25, 10);\n\n NSLog(@\"%f\", btnTest.lastSubviewOnX.x); // X value of the object with the largest X value\n NSLog(@\"%f\", btntest.lastSubviewOnY.y); // Y value of the object with the largest Y value\n\n [btnTest centerToParent]; // Centers button to its parent view, if exists\n ```\n",
"homepage": "https://github.com/freak4pc/UIView-Positioning",
"license": "MIT",
"authors": {
"Shai Mishali": "freak4pc@gmail.com"
},
"platforms": {
"ios": null
},
"source": {
"git": "https://github.com/freak4pc/UIView-Positioning.git",
"tag": "v1.0"
},
"source_files": "UIView+Positioning.**",
"requires_arc": true
}