Keep iphone active while running program
Hi, how to set iPhone device to stay active ( to not lock ) while my app is running ? Any idea ...
Hi, how to set iPhone device to stay active ( to not lock ) while my app is running ? Any idea ...
I'm new to Objective-C and iPhone development, and I'm trying to store floating-point values in an NSMutableArray, but when I do I get an error saying "incompatible type for argument 1 of 'addObject". What am I doing wrong? I'm trying to create an array of doubles that I can perform math calculations with. ...
I'm trying to work out the "correct" way to handle populating an array with key-value coding for an iPhone app. I've come up with something that works, but it's fairly hackish. Basically I'm parsing an XML document into a set of code-generated models. Let's assume the XML is of this format: <foo> <bar> <item name="baz" />...
I'm using the Leaks Instruments feature through Xcode to (try and) find memory leaks. I still haven't figured out how to use this program. I click Leaks in the program and see memory increasing as I do various things in the simulator. I have Extended Detail pane displayed. The only thing in Extended Detail pane that references my app i...
I seem to enjoy designing new UIViews and UIControls that implement their own: - (void)drawRect:(CGRect)rect; function. This work well for me, especially when composed using UIViews in Interface Builder. But composing them in Interface Builder is annoying because they just show up as boring rects with backgroundColors. Boring. It wo...
I am using a custum UITableViewCell , which has some labels , buttons imageviews to be displayed.There is one label in the cell whose text is a NSString object and the length of string could be variable , due to this i cannot set a constant height to the cell in UITableViews : heightForCellAtIndex method.The ceels height depends on the l...
I have a PDF loaded in an iPhone app using UIWebView and it displays page numbers when the pages are scrolled manually. But I've had no luck figuring out how to access those numbers and set the page displayed. Any suggestions would be welcomed. Thanks. ...
I am a new learner at the area of Objective-C. I would like to retrieve data from XML page on the iPhone. Is it possible? It would be more helpful to me if I get an appropriate suggestion or code. ...
I'd like to change programmaticaly the tintColor of a UINavigationBar and keep the gradient as in Interface Builder. When I change the tintColor in my code, the gradient disappears but when I change the tintColor in Interface Builder, the gradient is kept. Any ideas? ...
Hi, On the iPhone, I've tried to find a way to trap and act upon the backspace key pressed event. But cannot find a way to do that!! There sure must be one such way documented in the SDK right? /John ...
I just read in an online article that 2.2.1 does not support previous sdk. I wonder what that means? I just downloaded 2.2.1 and want to use updated/latest API's framework. How can i convert my project so that it uses updated/latest API's/Frameworks in version 2.2.1? Are there any special steps required OR should i just 1.) delete 2.1 a...
Is it possible to use an image captured with the iPhone's camera as a texture that is then manipulated in OpenGL ES (flag wave effect, etc.)? The main problem being the size of the iPhone screen being 320x480 (no status bar) and thus the image won't have dimensions that are power-of-2. Is the main option copying it into a 512x512 textu...
Hello, I have an app with a UITableView, using both icons and disclosure buttons. I want to update the icon on a row with a "selected" icon, and update the previously-selected row with an "unselected" icon. I have the code in place, but when I click on the rows, it sets both rows to the "selected" state, even though via debugging I ca...
I have a Tab Bar Application with Navigation Controllers on each Tab Item. I want to add a floating (semi transparent view) on my Table View just above my Tab Bar. How can i achieve the results? The results will be similar to how the Alpha list is displayed on the right of Contact Application's main view. I hope i'm clear in explaining ...
I just downloaded 2.2.1 and i've seen that my input view does not adjust itself when an input field (NSTextField) is selected. Earlier the view was adjusting itself w.r.t keyboard. I was using 2.1. How can i achieve the same effect? ...
Hi, i'm trying to get the return value of a javascript function(for example:return "hello") with iPhone SDK. On OS X the WebView method -stringByEvaluatingJavaScriptFromString: return a NSString containing the js function return value, but on the iPhone no value is returned. How can i solve? Thanks Marco ...
Is there a way so show google maps in (hybrid) terrain mode with QuickConnectiPhone? Is it possible to search like usa, california, street number instead of using latitude and longitude? ...
I have a list of things in a table view. When a user tap a row, I increase score. I wish provide a way to clear the score for that row. My first try is put the table in edit mode, show the delete button to that row and proceed. However, all the other rows get blocked and can't tap again the score or tap in the disclosure button. So, o...
I want to build a custom control to reuse in my project which consists of two UITextFields that are linked together + a label. It is starting to become repetitive across my App and smells of code duplication ;) However, I wonder what is the best aproach here. Is it best do everything by code in a controller or is posible do a visual ...
For some crazy reason I can't find a way to get a list of files with a glob for a given directory. I'm currently stuck with something along the lines of: NSString *bundleRoot = [[NSBundle mainBundle] bundlePath]; NSArray *dirContents = [[NSFileManager defaultManager] directoryContentsAtPath:bundleRoot]; ..and...