Skip to content
This repository has been archived by the owner on May 28, 2021. It is now read-only.

Shorthand methods for setting frame attributes of a iOS UIView

License

Notifications You must be signed in to change notification settings

pdkn/UIView-PKFrameAdditions

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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);

About

Shorthand methods for setting frame attributes of a iOS UIView

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published