I wish to localize an iPhone game.
I understand that the text in the app can be automatically changed to different language. But how about an image?
Some of the text displayed in our app is in the form of an images.
Is there way we can get the app to display different images based on different locales.
Thanks.
Related
I'm working on an iOS app to search for backgrounds, save them to the device, and change the default background. I need to know how to access backgrounds already stored on the device, how to save new backgrounds to that location, and how to set the device's default background from my app.
2 problems:
There is no distinction between 'background' and 'image'. You can use any image in your photos library as the background image. So "I need to know how to access backgrounds already stored on the device" amounts to looking in the photo library.
There's no way to access the 'set-as-background' method from a 3rd-party app.
I am new to ios dev, and wondering what are best practices to manage visual assets that are integrated into the app in xcode. Do people have copies of each UI for each form factor, including orientation? resize programmatically? other ways? I am doing all my UI programmatically but no idea whats the best way to manage the assets, meaning, the actual PNG files.
Whenever possible, I like to use resizable images. UIImage has a method resizableImageWithCapInsets:resizingMode: which takes a condensed image and stretches the center row, column, or single pixel as wide or as tall as you want it. This is how iOS creates a lot of its buttons, including the buttons seen in action sheets.
If you need to have separate assets for orientations, I would recommend using suffixes on the file name. So you might have Button-Portrait.png and Button-Landscape.png. You could also add a category on UIImage that takes an image name, detects the current orientation, and gets the actual image file.
I'm working on an iphone app and want to have a page showing multiple images in multiple grids (each grid has a image that will response when a user tabs on it), like the default iphone photo gallery app would show image thumbnails.
The first thing came to my mind was tableview with customize cells. Each cell would display some buttons and each button represents an image and set the cell as non-selectable. So the user can tab the buttons (the images) but not the cell itself. But is this the best way? Is this how the built-in photo app does it?
Thanks a lot
There are several open source grid views.
AQGridView
Also previously answered here:
Previous Answer on SO
You might want to wait for iOS 6 (hint, hint).
Login to developer.apple.com and look at the WWDC 2012 Videos (i.e. What's New In Cocoa Touch).
This is my first iPhone application. So I have this long list of doubts :-)
My application has a UItableView on the first tab and a Contact us page on the third tab. In both these tabs I display images.
For the UITableView i get images from the server and for the contact us page I have a set of static images of my client.
My question is, is there any specifications on the quality of these images that I should follow to get my App approved in Appstore?? These images are readable, but not of high resolution.
I know there are guidelines on the Tabbar icon images, the splash screen images. But what about the static images and the images i receive from the server?
Guidance or help would be appreciated :)
There are specifications based on display. However it is not mandatory to support both the displays (normal and retina).
You may want to dig more into the HIG. If you don't have images of double resolution then on the retina display the appearance of the app may be bad.
However you can use any image(barring other violation like DRM, copyrights etc) in your app.
Approval is also based on a large number of parameters. The images may not be a part of it.However they will specify it explicitly if rejected.
Have fun.
If you feel the image is good then use it.. Apple wont gonna reject your app due to images.
But just keep in mind that there are few icons defined by apple for specific purpose like action icon for opening actionsheet, camera icon for opening camera console or wallpaper.
Just keep in mind that you are not changing the behaviour of the predefined icons....
Rest all is fine..
Happy iCoding...
I am creating a ebook iPhone application and it consists of a bunch of pages.
My problem is some of the pages consists of images.
Is there a way to put the text and image in the same component.
What would be the best way to acheive this?
Thanks
You can't embed an image in a UITextField, nor the more appropriate UITextView. Consider turning your text into HTML, and using a UIWebView to display it. This would allow you to easily embed images into the text.