I want to implement a settings screen on the iPhone with images and hyperlinks, like the one for the twitter settings in the standard settings.
I can specify textfields and titles, but i cannot seem to incorporate hyperlinks and images into them. Does anyone know how this can be done?
Thanx in advance!
John.
You can't add some image or url to your bundle settings (at least the conventional way).
Here's is a list of what is available :
https://developer.apple.com/library/IOs/#documentation/Cocoa/Conceptual/UserDefaults/Preferences/Preferences.html
Twitter app does not have an external setting bundle (= settings from the general settings menu) but an in-app settings controller. Of course, with an in-app controller, you can have a nicer control of your views and have some dynamic entries.
EDIT :
From iOS 5, Twitter app is a native application. It setting entry is in the second section of general setting menu (not in the third one, as other app). Like iPod, Safari or Photos, for example. Obviously, native applications can make a lot more stuff than our poor appstore applications, like controlling the system, or display images, links and webviews in settings.
Related
I'm curious, is the standard "Share" dialog you see throughout a lot of iOS apps a standard SDK dialog or is everyone just mimicking the ones that Apple created for their apps like Safari? Or perhaps everyone is using ShareKit?
For instance, on iPhone you get a nice 3/4 modal dialog which does a vertical cover appearance, containing a bunch of shiny buttons:
While on iPad you see a "speech bubble" type dialog appear:
This seems too standard across apps to just be coincidence/people ripping off the look and feel.
The situation you presented in this specific case is caused by the fact that on iPad, the UIActionSheet is always presented within a popover controller, and on the iPhone it displays as in your example, withouth a Popover Controller (which is only available on the iPad)
I've written my own code for sharing using Facebook's SDK and the iOS5 Twitter integration so I've never used it but I believe there is a library you can use called ShareKit that will create the action sheets and sharing capability that you'd like. The "up-to-date"/"2.0" (I believe the original is no longer maintained) version is available here:
https://github.com/ShareKit/ShareKit
Apple provides the tools to make UI objects. The one you are looking at is "UIActionSheet".
Developers can bind methods to the tap events of the actionsheet.
Apple encourages developers to keep a consistent UI in order to make the overall use easier on the user.
Check out the Apple Human Interface Guidelines.
link
Does anyone know if you can create a settings bundle that uses a UIButton? I would like to be able to create something like Twitter in the settings but it doesn't seem possible.
You can't do anything in a settings bundle other than the controls you can define in the bundle file, and you can only update values from user defaults in there, not run any of your own code. A button doesn't fit that description.
The preferences for Apple's own software (I'm including Twitter in this since it is built into iOS) can be much more full-featured. Third party apps have their preferences in the ghetto at the bottom of the list.
If you want anything fancy in your preferences, you have to implement them within your app.
You can use a section with a single row as a button (sort of looks like one, too). It seems that is how the Twitter settings are implemented. This is the "Title" type of preference.
That being said, as far as I know you cannot run custom code from the settings app, which makes a button rather useless.
I am pretty new to iPhone dev. I want to create a Settings page in my application. In Android i use preferences to fill the required Settings page. Is there anything like that for iPhone dev, or should i create every section like a normal UI.
BR,
Suppi
See Implementing Application Preferences in the iOS Developer Library. This will give you all the information you need and some best practices to follow.
You could also use something like InAppSettingsKit which works in an almost identical fashion but will allow you to present your app preferences in-app as well as via the Settings.app.
If you want to make a "settings page" in Settings app, you should look at Settings.bundle with NSUserDefaults.
I see some application that uses the settings bundle for their app. Example: http://knol.google.com/k/usman-ismail/iphone-sdk-application-preferences#. I was wondering how to do that without it appearing at the user main settings. I see some application managed to do that. Is there any tutorial around?
I recommend you this open source application http://www.inappsettingskit.com/.
InAppSettingsKit is an open source solution to to easily add in-app settings to your iPhone apps. It uses a hybrid approach by maintaining the Settings.app pane. So the user has the choice where to change the settings.
Either you follow the tutorial and the preferences appear in system preferences along with all the other apps, or you roll your own and open a preferences screen from within your application. You can choose either but don't ever do both, it is just confusing. To get the look and feel of the system prefs inside your app you would need to do custom UITableViewCells, which luckily is easy - see this page of the Table View Programming Guide for how to do custom cells in a UITableView loaded through one of your view controllers.
The nice part is that you can do it all from within Interface Builder if that's what you're used to.
I'm using Apple iPhone Configuration Utility to configure in-company mobile phones. I'd like to add to home screen an icon for a in-house web application we have developed. Using the Web Clip section, it's easy to add the webclip to home screen, however, we have two issues:
The webclip doesn't show up the png icon defined for the page (in meta tags).
The page loads up in Safari but is not "stand-alone" (fullscreen) (same thing, this property is defined in meta tags).
Note these issues are not encountered when adding the webclip to the home screen directly from Safari Mobile on the device.
Best
Use the iPhone Configuration Utility. There, in the section for web clip you can set full screen and and the icon. As far as I remember, you need to have those things set there and in the meta tags.
We use this feature quiet a lot and it works very well.