开发者

How to set image as a background image in iPhone

I have question that how could I set the ImageView image object as a background in my iPhone I use sdk 4.2 and in iPhone 4 its possible to set the backgound image in iPhone... So my case is that if some one likes the picture then they should give the UIAlertView to set as a background... OK & Cancel option in ok option its automatically set the image as a background.

My object are as follow:

UIImageView *imgViewObj = [[UIImageView alloc]init];
[imgView setImage:[UIImage imageWithName:@"sampleImage.png"]];

I have to set this imgView obj as a backgr开发者_运维技巧ound image...


No, you cannot programatically set a user's wallpaper in iOS (yet anyway). You can probably do it on JB devices though, but that won't get you on the Apple appstore.


If you are talking about the iPhone background while you are outside of the app this is a repeat question. Otherwise in your own application just set contents of your root views layer to the CGImage you wish.

Setting iPhone wallpaper (locked screen background) programmatically?

How to set iPhone Wallpaper Programmatically

change wallpaper via iphone app

How to change wallpaper in iPad programmatically?

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜