how to check shake effect in iPhone simulator?
I am using XCode.. I have implemented the shake code. Now I want to check - weather that code works or not.. But how to shake - iPhone simulator?? ...
I am using XCode.. I have implemented the shake code. Now I want to check - weather that code works or not.. But how to shake - iPhone simulator?? ...
Hello, I am using a UINavigationController to handle the pushing and poping of viewControllers in my app. Theres a section where i have a tab bar (not using UITabbarController) which is manageed by the same UINavigationController, i simply add the UITabBar to the navigation controllers view (by using addSubview). The Problem: I have ...
In Xcode, you can view all the header files of the cocoa-touch framework, but I'm just curious to see what some of the implementations look like. Is there a way to see them? They must be on the system somewhere, right? The header doesn't do anything without the implementation. ...
I have in effect a string utility that returns a URL. I know that when you do a [[NSString alloc] initWithFormat you have to manaully release the result string. But this case is a bit complicated and I'm not sure how to deal with it. In this code snippet I will be calling the getChartURL method from another class: http://pastie.org/5...
Anyone know anyway to tint uiactionsheet in uikit? ...
When Apple introduced version 3.0 of the iPhone OS the UIImagePickerController changed slighty: it no longer provides an activity or progress indicator after the user confirms a recently taken photo. In a nutshell, you now - take a picture, - decide it's ok and - hit the "Use" button and wait. There is no indication as to whether you ...
I've added several localization files (for several languages) to a xib. Do I also need to do the same for all other xibs? Should I just make all of my labels IBOutlets, use NSLocalizedString in the related .m files that will assign values to the labels? Then I wouldn't have to create all of these localization files. At least for the ...
I am following the 'SQLiteBooks' sample to understand how to work with sqlite3 for the iPhone and am wondering if the connection to the database should be closed immediately after you do a query and reopened each time you need to talk to the db or should the connection be kept open at the start of the app and close on 'appWillTerminate'?...
I have setup Core Data for an iPhone app without an instance of NSFetchedResultsController. To do this, I created a created a model class to encapsulate all core data requests and constructing of NSFetchRequests/NSPredicates. This kept all Core Data specific code out of my UITableViewController. Now I want to add NSFetchedResultsContr...
(Note: This is an extension of a previous question.) I am having some difficulty implementing a SearchBar for fairly complex tableview. The tableView has multiple sections, two lines of text and an image. All the data is loaded from a plist and then put into sections by the initial letter of the value for the "Name" key. NSLog returns t...
The iPhone keyboard overlaps the tab bar by default, but it also behaves like a subview of the view that is inside the tab bar; for example, if it is open inside a UINavigationController-governed view, and you navigate Back, the keyboard slides away along with the view. How do I get a UIPickerView to behave like this? It's layered behin...
Is it possible to run some javascript code (having perhaps an NSString as input) without using a UIWebView? I would like to run this code in a separate thread so UIWebView is not possible and I don't really want to render anything, just get back the results. ...
Ok, so I'm working on an alternate version of an iPhone app, and my new version builds just fine. The executable is actually created, I checked the build directories. I've tried manually changing EXECUTABLE_NAME to the correct name in my second target's info plist file, but that does not change the behavior. MyApp2.app is still create...
I am loading approximately 60 to 80 data from web-service. But If you have seen "Around Me - Google - Application" -> It has a tableView as a search result -> In table View last cell is written as view More -> On clicking that more data appears I want to implement the same effect / logic to my application but don't know how? ...
Does anyone know how to create a Navigation View inside a standard Flipside View to read and update settings? If so, can you post some code on doing this. ...
I have created a view and would like to draw or add text to it later based on the state of app when user touches it. Can I do this with drawRect given that I have multiple possible draw/text items for it? If so, how do you invoke it? If not, where should I look to accomplish this? Thanks in advance, Steve ...
I use finalbuilder (http://www.finalbuilder.com/) for my build process. I wonder if exist a alternative to run in OSX. I could try to run finalbuilder inside a Windows virtual machine and run from SSH commands from there but still I want sometime to automatize the build process of my iPhone apps. I don't find a tool like FB with graphi...
Is there a method to draw text in the middle of a rectangle. I can find various alignments, but nothing I have tried can vertically centre the text in a rect. Is there a simple method to do this, or is there some way to centre a rectangle and then draw in that? I'm drawing direct to the CGContext, trying to use NSString::drawWithRect ...
I have following code in my Application. tmp=[[UILabel alloc] initWithFrame:label1Frame]; tmp.tag=1; tmp.textColor=[UIColor blackColor]; [tmp setFont:[UIFont fontWithName:@"American Typewriter" size:18]]; tmp.backgroundColor=[UIColor clearColor]; [cell.contentView addSubview:tmp]; [tmp release]; Now, I need to know, ======> how to se...
This code works, and I can see the request go out to my php script through charles with my custom header GUID attached. NSMutableURLRequest *loginRequest = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:feedURLString]]; NSData *myRequestData = [NSData dataWithBytes:[myRequestString UTF8String]length:[myRequestString lengt...