I am making a iPhone app using phone gap in that I want to add a tab bar Controller either using HTML or by using native components to it. Can anyone suggest to me how to do that.
If you are using phonegap/cordova versions 1.5+ you can create a native tabbar with this plugin: https://github.com/AndiDog/phonegap-ios-tabbar-plugin
Other phonegap/cordova plugins can be found here: https://github.com/phonegap/phonegap-plugins/tree/master/iOS
Here's a tutorial how to implement this: http://zsprawl.com/iOS/2012/03/using-the-native-tabbar-plugin-in-cordova/
This is of course the best approach. Other one would be to use a jQuery Mobile and create a HTML tabbar. This is a harder way because it will take time to style it properly and even then it would not fully act as a native tabbar.
Related
I have a PM-system in my homepage and now building a app for this.
I want to show this PM now and in the next view edit it.
Showing is very simple, because I can use UIWebView for this.
But how to have and editable UIWebView, something like a RichtTextBox in iOS for this?
My only idea was to cut the HTML complete away from the PM an then display and edit in UITextView.
Does your system provide any kind of webservice interface (like REST or SOAP)? If you want to build the PM system as a native iOS App you should forget about the uiwebview and build the user interface yourself. Get the data remotely from your PM system (as XML, JSON, whatever), parse it and update the ui elements. That way you can layout and manage your ui and data as you wish.
Edit: If it doesn't maybe you should make the views of you web app iPhone compatible (e.g. sencha touch, jquery mobile) and try e.g. Phonegap.
I'm trying to make a popup like in "Camera+" or "Tweetbot" (like this one : Tweetbot or this one Camera+). How can I do this ?
That component is generally called a Popover or a Callout. Apple provides you with an Implementation on the iPad (UIPopover) but not on the iPhone.
There are a few Libraries which attempts to solve this and creates similar popovers like the ones you've shown. With a bit of customisation you can get it to look like this ones you've linked. Below is a list of the ones i've found so far:
WEPopover
CMPopTipView
PopupView
There's similar question here: iPhone popup menu like iPad popover?.
There is a solution. It's called WEPopover and you can download it from github.
For ipad use the popover control:
http://www.matthewcasey.co.uk/2010/04/07/tutorial-introduction-to-pop-over-control-on-ipad-part-1/
http://developer.apple.com/library/ios/#featuredarticles/ViewControllerPGforiPhoneOS/iPadControllers/iPadControllers.html
http://developer.apple.com/library/ios/#documentation/UIKit/Reference/UIPopoverController_class/Reference/Reference.html
I like to have uniformity in my application style for my mobile.How to apply the styles to my control in the Iphone app ..Something similar to android resource files.. Even i hope thats one of the good pattern to follow in the application develovpment
Buttons can be styled by using
creating a custom button.
Custom views can be created using Interface builder or via code inheriting the UIview. A sample tutorial can be found here
You can create custom uitableview and uitableview cells too.
Resource files in android application is what Interface builder provides you in Xcode to create xib (nibs) for your ui layout.
already iphone implemented app running on xcode so how you know, which type of iphone template (view based or window or tab based....)is selected while development?
It doesn't matter. The template is just something to get you started. You can still change your app to be however you like after you've started development.
I don't think it's possible because all that templetes are just conventionalities. However if there is tab bar controller, then you can suppose that this is tab based app.
Is it possible to Launch Safari without having the app close? Just like the in-app email compose window.
I'm aware of how to display a webpage in UIWebView. I'd like to use a full web browser, i.e. Safari.
You can use a UIWebView to display web content in your app.
You can create a UIWebView with the URL to display. It will follow any links that the user touches, but that won't give you the address bar, search, navigation buttons, bookmarks or the page (tab) control. Those you'll have to add yourself, but odds are you don't want all of that. (Do you really need Google searches in your app?)
Creating a controller to manage a UIWebView and as much or as little navigation as you need is pretty easy. With a little planning, your custom controller class will also a good thing to keep in your library for the next app.
No you can not make use of the full Safari from within your own application. Your application must terminate for Safari to open.
In iPhone OS 2.0 you also had to terminate in order to send e-mails, so some chance exists that Apple couls open up Safari in the same way for iPhone OS 4.0. Make sure to request it at http://bugreport.apple.com if you are eager.
The second best option currently available is to roll your own "Browser view controller" using UIWebView. Let it have back, forward, stop/reload buttons, and an extra button for opening in Safari if the user is not content. This is how many of the greatest apps our there, like Tweetie, does it.