문제

How would I go about initializing an image to become a sort of "main" image through setting it via button that would be located on each said image? Basically there would be several images, each with a button, but only one could be set as the "main" image, so every time the app is loaded, it would always load to the set main image? Note that I'm still pretty fresh to iOS developing so any tutorials or references would be of great help!

도움이 되었습니까?

해결책

I believe that the an apps startup image cannot be changed programmatically - only in the 'Deployment Info' section of projects summary (manually). You can, however have a view that contains an image (which can be changed programmatically) to load after startup, and after a specified delay using either NSTimer or [self performSelector: withObject: afterDelay: ]. After this, the view can move on to the main part of the application. You can make the user choose a default image in the settings, and keep it as the one that loads in the view after startup by using NSUserDefaults.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top