how to add and remove UIToolbaritems programatically?
I want to add and remove the items on UIToolbar at runtime. Is there any way to do that? ...
I want to add and remove the items on UIToolbar at runtime. Is there any way to do that? ...
Hi! I've got a PHP background, but I'm beginning to learn Objective-C, so that I can develop apps for the iPhone. So far things are going pretty well, but I've got a question that I haven't been able to find and answer to yet after googling and mining a number of different forums. My app has to create a number of views, each with it's o...
I need to rotate a UIImage in response to user input. I'd like this to be as slick as possible and therefore would like to know which is the quickest way to perform the transformation and render. Ideally I'd like to stay within the UIKit or Quartz frameworks. The properties of the image are as follows: Size approximately 250x300 pixels...
Hi, in my iPhone app, I have an UIWebView with some simple HTML links to audio files. When the user opens such an audio file, media player plays it an leaves my UIWebView with this screen: How do I dismiss it after the audio file was played? I've searched for UIWebView's delegates without finding something useful. ...
Is it possible to distinguish an iPhone 3G from an iPhone 3G S using any of the properties of [UIDevice currentDevice]? ...
Hi, I have added a button on a view(the view is of the same size as the button). When that button is clicked a new view has to be displayed. So in the button's event handler I have added the newview as a subview of the view on which the button is added, so that the newview gets displayed when the button is clicked. The thing here I need...
Any one know how I can stream internet radio on iPhone with code? Is a provider required? ...
Hi, In my iPhone app, I'm trying to delete a row from an SQLite database. After the delete statement is executed the row seems to be deleted correctly, but after I restart the application the row is still there. I'm using the code blow to delete the record. Any idea what could be the problem? NSString *deleteSQL = [NSString stringWithF...
Hi, am having the following problem: In my app I am creating a temporary object, for example a label in the following way: UILabel *tempLabel = [ [UILabel alloc] initWithFrame: CGRectMake(100, 5, 200, 30)]; tempLabel.backgroundColor = [UIColor colorWithRed: 1.0f green: 1.0f blue: 1.0f alpha: 0.0f]; tempLabel.text = [ [WordsDatabase sha...
Dear All, I'm building an app based upon the "Scrolling" sample code that Apple provided. All is working very well. The nature of the images that I want to display, would make it desirable, if the order of the images is reversed, and that the first visible image is the right-most, rather than the left most. Basically, the user should scr...
I want to modify a UIImage on a pixel-by-pixel basis. I've found a couple of posts here and elsewhere about accessing the image data as a char* pointer. My twist is that I want to modify this data and then create a new UIImage based on my pixel data. Anyone done this before? ...
Dear All, [I just posted a similar question, but I'm not sure whether is actually got posted. Editor: please remove if this is a double post.] The app that I'm writing has quite some code in the appdelegate's "applicationDidFinishLaunching" and a ViewController's "viewDidLoad". All of this code is executed before the user can start do...
Hi, I want my application to download some data from the internet, in iPhone SDK documentation i found NSURLConnection class, which is used for downloading, Am i right? I wrote the same code as it is in the documentation and ran it. Connection was created successfully, but no data were downloaded. connectionDidFinishLoading is fired afte...
if i am an individual or enterprise,can i see how many times my applications has been downloaded from app store? through portal? ...
Suppose I have image canvas or previously loaded image which supports transparency (gif/png). What are the steps to implement changing transparency for the image, but not for the whole image, but only a part of it? I undestand I should use CGContext, but i'm lacking the details. ...
Hi, I'm trying to have 2 version of my iPhone application within the same XCode project. The codebase it's almost the same and where I need to have different behaviours I've decided to use preprocessor's conditionals and the ${TARGET_NAME} tag. I've set the OTHER_CFLAGS to contain "-DTARGET_NAME=${TARGET_NAME}". Then in my code I trie...
I use temporary tables in an SQLite based iPhone application. Performance was not as was required so I looked at various candidates for optimization. Most of these worked well and had the desired effect. However, I'd also like to try moving the temporary tables from flash into memory to see if there is any improvement. On an actual de...
I have a (float) rating value as a percentage from 0..100 (where 50 = Just OK, 0 = terrible and 100=best). What's a simple way to display this as a 5 star rating on the iphone, with the following requirements: simple (ideally just using drawing operations based on a png of a single star or five of them, and without needing to resort t...
Is there a way to set the starting selected segment in a UISegmentedControl in Interface Builder, or do I have to do it in the code? If it's in the code, is viewDidLoad the best place to set it? ...
I have some code that looks like this: actualColor = 0; targetColors = [NSArray arrayWithObjects:[UIColor blueColor], [UIColor purpleColor], [UIColor greenColor], [UIColor brownColor], ...