Change ios Frame Size(width e height) keeping position (x,y)

How can i change Size of a Frame view and keep origin position? I tried with this code (but it didn't work):

myview.frame.size = CGSizeMake(23.0,50.0); 

Answers


Here's how to do it with just one line of code:

myview.frame = CGRectMake(23, 50, myview.frame.size.width, myview.frame.size.height);

or

[myview setFrame:CGRectMake(23, 50, myview.frame.size.width, myview.frame.size.height)];

Need Your Help

What is the best way to do this java web project? What are the usable technologies?

jsp servlets

I am a newbie to the programming world. I have experiences of developing simple projects using JSP and servlets (css,jquery and little bit of ajax).

About UNIX Resources Network

Original, collect and organize Developers related documents, information and materials, contains jQuery, Html, CSS, MySQL, .NET, ASP.NET, SQL, objective-c, iPhone, Ruby on Rails, C, SQL Server, Ruby, Arrays, Regex, ASP.NET MVC, WPF, XML, Ajax, DataBase, and so on.