iphone

Display icons and name of application for iphone application

How i can display all applications icons and name which are installed in device in my application? ...

how to move the control from one uiview to another uiview in iphone?

I created a uiview(with two buttons) covers all the screen whenever i click on any one of button i want to transfer my control on previous screen what can i do in iphone? ...

TableView crashes when i scroll it repetitatively and it contains 158 cells at the same time.How can i fix this?

My TableView crashes when i scroll it repetitatively and it contains 158 cells loaded at the same time.In each cell, I am adding two more labels like UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:CellIdentifier]; if (cell == nil) { cell = [[[UITableViewCell alloc] initWithStyle:UITableViewCellStyleDefault r...

unit test + snow leopard + xcode 3.2.2

Hi I have been trying to set breakpoint in my unit test code using SenTestCase framework in xcode 3.2.2. I can see the build results properly but unable to set a breakpoint. Anyone having an idea please help. ...

- Default value of variables at the time of declaration -

Hey guys, I was wondering what was the default values of variables before I intialize them .. For example, if I do : //myClass.h BOOL myBOOL; // default value ? NSArray *myArray; // default value ? NSUInteger myInteger; // default value ? Some more examples here : //myClass.m // myArray is not initialized, only declared in .h fil...

Ad hoc network between iPhone and non iPhone devices???

Is it possible to set up a ad hoc network between an iPhone and a totally different device like camera,scanner or printer and build a data tunnel between them to exchange data or services. I believe iPhone does not have the provision of creating an ad hoc network. So i am assuming that the other device are the initiator of the ad hoc ne...

Objective-C subclasses question

I have a class called Level, which is a subclass of NSObject. Then I have a class called Level_1_1 which is a subclass of Level. Is it allowed to type like Level* aLevel = [Level_1_1 alloc]; instead of Level_1_1* theLevel = [Level_1_1 alloc]; ? :) I try it and I don't get any warnings, just wondering if it's okay to do? ...

NSConcreteData leaked object in objective c ?

Hi Guys, I am getting the NSConcreteData leaked object while testing the leaks in the instruments.It showing in the parser, - (void)parseXMLFileAtURL:(NSURL *)URL { [urlList release]; urlList = [[NSMutableArray alloc] init]; myParser = [[NSXMLParser alloc] initWithContentsOfURL:URL] ;// it showing this line as leaking [myPar...

How do I get a UIView to appear instantly?

I'm trying to create an activity indicator in iPhone app. The problem is that I cannot get it to appear before the actual task i want it to diplay during is already done. Is there something funky about the order in which the iPhone does stuff? Here is my problematic code (in my app delegate): -(BOOL)showProgressView: (NSString *) messa...

How to crop the UIImage?

Hi, i develop the code in which i cropping the UIImage but in follwing code will not cropping the image.Also it not give me any error, is their any mistake in my code that why i not getting cropping image in following method of -(UIImage)cropedImag (UIImage *) cropedImage: (UIImage *) image { CGFloat width = image.size.width; CGFloat h...

In cocos2d, what is the method to change the anchorPoint and position without causing it to suddenly jump?

In cocos2d, I have a CCLayer that is being moved and scaled using touches and pinch gestures. By default, the zoom always goes towards the anchorPoint. Changing the anchorPoint fixes my zoom problem, but causes the sprite to suddenly jump. Here are two similar questions here and here, but I still don't know exactly what to do. Than...

NULL value when using NSDateFormatter after setting NSDate property via XML parsing

Hello, I am using the following code to try and display in a time in a table cell. TimeSlot *timeSlot = [timeSlots objectAtIndex:indexPath.row]; NSDateFormatter *timeFormat = [[NSDateFormatter alloc] init]; [timeFormat setDateFormat:@"HH:mm:ss"]; NSLog(@"Time: %@", timeSlot.time); NSDate *mydate = timeSlot.time; NSLog(@"Time: %@", myda...

initWithContentsOfURL seems to have issues with "long" URLs

Hi there I'm facing a rather strange Issue when trying to load data from an XML-Webservice. The webservice allows me to pass separated identifiers within the URL-Request. It is therefore possible for the URL to become rather long (>240 characters). If I open said URL in firefox the response arrives as planned, if I execute the followi...

Presentmodalviewcontroller method problem with retain count

Hello guys! I am trying to present a modal view controller. I have read the documentation, but something is strange. Here's my code: NSLog(@"rc: %d", [modalViewController retainCount]); UINavigationController *navigationController = [[UINavigationController alloc] initWithRootViewController:modalViewController]; [self presentModalViewC...

Must I call -reloadRowsAtIndexPaths:withRowAnimation: inside an -beginUptades -endUpdates block?

Must I call -reloadRowsAtIndexPaths:withRowAnimation: inside an -beginUptades -endUpdates block? ...

Accessing current track information from iTunes on iPod

Is there any iTunes API for the iPhone OS which I can use to access some information (current track, etc.) from iTunes? I looked around, but all I could find was some AppleScript and COM API. ...

Send POSTs to a PHP script on a server

I have a PHP script on a server <?php // retrieve POST vars $comment = $_POST['comment']; $email = $_POST['email']; // remove trailing whitespace etc $comment = trim($comment); $email = trim($email); // format date accoring to http://www.w3schools.com/php/func_date_date.asp $date_time = date("Y-m-d-H-i-s"); // i.e. 2010-04-15-09-45-2...

How to start an iPhone 3.1.3 project in Xcode 3.2.3 (iPhone SDK 4 beta)

Hi there! I am having big problems since I downloaded the beta version of iPhone SDK 4.0. Okay, I just started to look at iPhone development a few weeks ago, but I cannot figure out how Xcode is supposed to work: whenever I start a new project, I choose a template like "View-based application" or so. Now, the target will always (at leas...

SMTP/POP3 on iPhone OS

Hi everybody, I want to develop a mail client on iPhone, it's similar to mail.app available on iPhone. I have tried to search on internet but not found how to send mail over SMTP and get mail over POP3 to my app. Please help me !! ...

Tool to monitor HTTP traffic

I have an application on my iPhone which sends out Http requests; is it possible to look into the HTTP stream using some tool?? I use standalone version of (IEInspector's) HttpAnalyzer tool on my windows PC to monitor HTTP traffic from all processes including the apps on Android phone (thanks to android debug bridge interface). Is there...