How to change text Cancel button Searchbar of iPhone in Titanium? - iphone

When I set the value 'true' to showCancel property in the method Titanium.UI.createSearchBar. It displays me the cancel button, but I would like to customize that button text to Go or anything else. How do I do that? Please give me suggestions. Thanks you so much.

I don't believe in Titanium Mobile SDK 1.4 you can change the button text.
As a work around you could add your own button to the screen and have it interact with the tableview. Not an ideal solution though.
Please find below the current documentation link.
http://developer.appcelerator.com/apidoc/mobile/latest/Titanium.UI.SearchBar-object

Related

Use Custom Image Instead of Default Facebook Share button?

I'm trying to use a custom "share on facebook" image I made in photoshop instead of the default facebook share button. The idea is that when someone clicks the image the share box will be brought up. I have looked around, but can't seem to figure out how to do this. Any help would be greatly appreciated.
Add a UIButton & set it's background image as "yourCustomImage" ?
If you see a problem then try to see how to add a button type custom in stack overflow.

iTunes U style download/progress/stop/play button

iTunes U for the iPhone has these wonderful buttons that show
the download progress
the stop button and the
play button (well, the "i" button)
in one place - see attached screenshot. Is this a system icon which can be called by code, or is it something thats not available for developers?
Anyhow: if someone has a source, that describes how to get such kind of buttons, I'd be very happy. It's clear to me, that the icons are controlled by a state-pattern in view-controller.
Thanks in advance.
There is DACircularProgress on github, it looks just like the circular progress bar on the Facebook app, I think you can take that, modify it to put the stop button on top and change the color and use it. check it out:
DACircularProgress

Disable search button

I have a problem and would appreciate it if you would help me.
I made a app from this tutorial:
http://www.lonhosford.com/lonblog/2011/05/08/xcode-4-iphone-tutorial-mountains-of-the-usa-overview/?fb_comment_id=fbc_10150196924999637_19584378_10150363736289637#f20e4d75c4
It works great, but i need it without the search button. I want to see all the data when i start the app... without taping on the search button or anything else.
I am in the learning process and it would help me a lot if someone would answer.
On the link you will find all the codes i used in the app.
Thanks a lot!!
David R.
remove the button from the interface and just call the method associated with the tap of the button from your viewDidLoad.

Small popup for instructions... How?

I am trying to get a popup appear the first time an app is started. Just to give you an idea check the new version of foursquare. A small popup (like a comic) appear explaining where the checkin button is located. Then if you tap anywhere it goes away. I googled for the last hour but I have not found anything at all and I have no idea on how to do it.
Anyone can point me in the right direction?
Thanks in advance,
Umberto
You can show a customized UIlabel on app's load and then use performSelectorAfterDelay: and hide the label inside this method. For the tapping thing you can add a UITapGesture on your view to notify if some tap's occurred and hide the label if it's still there.
You can have a look at TapKu by Devin Ross http://www.cocoacontrols.com/platforms/ios/controls/tapku-alerts-with-images

iPhone Cocoa hyperlink

is there a way to display a hyperlink in an iPhone native app. Is this done with a label or another UI object?
Thanks!
Joe
Take a look at Three20 TTStyledText class
Create a custom UIButton with only text (no background image) and write an IBAction on its click - you have a hyperlink...
You can embed your text along with hyper link mark ups in a uiwebview object via a static HTML file. Another way is to show the link text on a uibutton and upon click of that button open safari to navigate to the link
I suggest the following solution: Display the htperlink text as a label and put a detailed disclusure button after it. (Detailed disclosure button is an arrowhead in a circle (>). Set the button title to the url, and make an IBAction that handle the click of the button. In this action you can create a new UIWebView, display it and load the URL into it.
There is actually built-in support for this with a UITextView. Check out the accepted answer to this stackoverflow question: How to add hyperlink in iPhone app?