I am trying to load nib at run time. I am using Button control & binding it to one method & outlet.
But problem is that when i load it run time it not display button.
Also When i click on positio开发者_高级运维n where i placed button in interface builder, it executes binded method. I don't understand what is happening ?
It's likely you've not set up your auto-sizing "springs" correctly and the window is a different size when running than the design view in IB. Because of this, the button is whizzing right out of where it should be as soon as the window's size is set.
Found the exact problem. I am adding view like as below
[[NSWindow contentview] addsubview:newView];
This statement create so many problem. So i finally add one view & inside that view, insert one more view. Then replacing that view with other view. It works so fine.
This code will surely works.. If any friend needs
UIImage *backBtnImage = [UIImage imageNamed:@"/Users/mac/Desktop/logo/Forward.png"];
[_frwd_btn setBackgroundImage:backBtnImage forState:UIControlStateNormal];
精彩评论