iphone

How can I deploy an app to my iPhone from the command line?

I can already build an app with a distribution profile via the command line xcodebuild -configuration Distribution -sdk iphoneos3.0 clean build However, I'd like to go one step further and install the app to the connected iPhone and execute it ( as if I'd pressed Build and Run in XCode ). The final command listed in the build comman...

Cocoa and Cocoa Touch: is an object on the dictionary?

I thought it would be simpler to find if an object in on a dictionary, but it appears it is not. I have a NSMutableDictionary with just one key named "products". I have several products added to the dictionary dynamically, using something like [myDict addObject:@"banana" forKey:@"products"]; [myDict addObject:@"orange" forKey:@"produc...

Problem in Reloading UITableview..!

hi, i am parsing two xml files with one xml parser class , i have a table view where the data is displaying after parsing .. here is a imageview and label , when i parse the first xml like if i parse myxml_1.xml and then display data in a table view its fine . but when i parse again the xml named myxml_2.xml and display the data in that...

Multiple Views in one Window

Hi everyone, I'm writing a view based app, but I'm a bit confused about loading my views. I'd like to have four different views loaded at the same time in the same window. I can't seem to figure out how to do this. I'd prefer to do everything programatically rather than with the interface builder if possible. My 4 views are: a UI...

How to clear and then redraw a quartz drawing

I'm making a complex drawing using quartz based on passed in information. The only part I haven't been able to figure out is how do I clear the lines, rectangles, etc that I've already drawn? Basically, I want to erase the whole drawing and just draw it again from the new data. ...

View Controller being sent a message even though it has been deallocated.

I am not sure if something has changed in the iPhone SDK 3.0 but I am getting the strangest error. I have a view controller hierarchy where I switch between view controllers depending upon interface orientation. From what I can tell, the error is caused whenever I rotate the interface a view controller which has been deallocated is being...

Synchronize Core Data with SQL or MySQL Via SQLite

I am trying to build an iPhone application using core data's built in table management. I want synchronize the data with an MSSQL or MySQL database. Core data is compatible with SQLite so I thought it might work as a bridge. Can anyone think of how one might achieve this functionality? ...

Iphone Receiving Errors in Organizer Console

When attempting to use the app I have developed I am receiving the following errors: Sun Oct 18 17:49:38 unknown com.apple.debugserver-43[316] <Error>: error: RNBRemote::HandlePacket_p(p3b): unknown register number 59 requested Sun Oct 18 17:49:38 unknown com.apple.debugserver-43[316] <Error>: error: RNBRemote::HandlePacket_p(p3c): unkn...

Converting a date (string) into another date format (string)

I have a novice question, will be happy if any one out there can help me. I have an NSMutableArray, for example: { JobID = 109302930; Subject = "Test Subject"; SubmitDate = "2009-09-15 17:27:34"; } I am now trying to create sections in my table view and want to group my records based on "formatted" SubmitDate. For example; 16th May'...

Changing UITableView section header without tableView:titleForHeaderInSection

I'm trying to change the header title for a section in a UITableView when a cell from that section is selected. tableView:titleForHeaderInSection is triggered by the application, so that doesn't help. I can call reloadData, but the performance suffers because the app has to reload all the visible cells. I also tried to use a custom heade...

How do I append a new item to a plist?

In my iPhone app, I have two plist files to store "Themes". One is a read-only file containing default themes, and one contains custom Themes that the user has created. I'm using plist files because it's very easy for me to read from the plist and create new Theme objects. My plist is an array of dictionary objects. Is there any easy w...

Disabling iPhone screenshot feature

I'm working on an enterprise iPhone application for a client, the issue at hand is customer information will show up on the phone. My client is worried that the information could be caught using the iphone screen capture feature (home + power button), then emailed or synced from the phone. Is there any way to disable the screen capture f...

Bug in iPhone Library Access?

Hi, This code: MPMediaQuery *query = [MPMediaQuery artistsQuery]; NSArray *songsByArtist = [query collections]; for( MPMediaItemCollection *c in songsByArtist ) { NSLog(@"artist %@ has %u songs",[[c representativeItem] valueForProperty:MPMediaItemPropertyArtist], [[c items]count]); } works as expected. But this code: MPMediaQuery ...

Texturing a sphere in iphone's OpenGL ES.

Basically i want a 3d rotating earth. gluSphere function isn't found. is it available on the iphone's opengl es? how can i render a sphere otherwise? ...

to remove cc , bcc in MailComposerViewController

hi, i am using MailComposerViewController from apple site.but when i send my message with empty cc,bcc field it gives error. it asks to fill that field .how can i send without cc, bcc with empty field . bcos it is optional to users....any help?????? ...

How does UIView nextReponder know what the UIViewController is?

Just as a matter of curiosity, how does the nextResponder method implementation of the UIView class know who is the UIViewController that manages the view? The UIResponder documentation states this, and I can see it work, but I don't quite understand it. To the best of my knowledge, a UIView does not maintain a reference to it's controll...

How do I create a thumbnail view in my UIView?

I want to add a thumbnail picture viewer to my application.I have been trying to do in many ways but didn't succeeded in anyway.I'm quite new to iPhone development.can anyone please help?.... I'm currently creating a UIImageView with CGRectMake and adding an image to it and changing the position of the UIImageView. What I want to know ...

How to get the list of all announced bonjour services on all available domains?

It's not the problem to look in all domains, but I can't find the right way to look for any service on the network. ...

openUrl in landscape mode in iphone

Hi Fellas, I am trying to open the url through safari in landscape mode. But still not able to do it. Following is the code. [[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"http://www.abc.com"]]; [[UIApplication sharedApplication]setStatusBarOrientation:UIInterfaceOrientationLandscapeRight animated:YES]; Thanks in ad...

how can we know iphone has got information from Internet?

Hi, i want to display activity indicator when i search from the internet.but how can i know the iphone has got response from the internet to stop animating activity indicator? is there any method? ...