Skip to content
Shorthand methods for setting frame attributes of a iOS UIView
Objective-C C
Find file
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.
LICENSE
README
UIView+PKFrameAdditions.h
UIView+PKFrameAdditions.m

README

Some shorthand helper methods for UIViews

Instead of:

self.myUIView.frame = CGRectMake(self.myUIView.frame.origin.x,
				60,
			 	self.myUIView.frame.size.width,
				self.myUIView.frame.size.height);

You can just do:

self.myUIView.frameY = 60;

Other helpers:

self.myUIView.frameSize = CGSizeMake(200, 300);
self.myUIView.frameOrigin = CGPointMake(10, 50);
Something went wrong with that request. Please try again.