iphone

Unzip NSData without temporary file

Hello, I've found a couple of libs (LiteZip and ZipArchive) that allow to unzip files on iPhone. But both of them require an input as a file. Is there a library that allows to directly unzip NSData containing zip-archived data without writing it to temporary file? I've tried to adopt mentioned above libs for that, but with no success s...

Ask about int array in Objective-C

Code below is a simple c# function return an int array. I would like to know how to convert it to Objective-C private int[] test() { int[] a = new int[2]; a[0] = 1; a[1] = 2; return a; } ...

Display data of NSMutable String in table View

i am accessing web services, which give me result in string array. Say if the length of string array is 3, The first string is "1|123|Bank Of America|111|recall" (| is a delimiter) The second String is "2|456|JP Morgan|22|recall" The Third String is "3|1789|Amex|333|recall" Now when i parse the SOAP web services, the result is in a NS...

".objc_class_name_ABPersonViewController", referenced from:

whenever i add this line of code ABPersonViewController *personController = [[ABPersonViewController alloc] init]; im getting this error message ".objc_class_name_ABPersonViewController", referenced from: ...

Objective-C programming to call an application from another apps

Hi, I need to develop an application that needs to call another application which is in the local host.I have already posted the same question in the stackoverflow and i got the anwer and implemented it according to it. But i did not get the ouput in the iPhone simulator.Guide me in the coding what is the mistake such that it appears wh...

How to display the parsed pdf data back to UIWebView?

I have parsed the pdf data using the following code. NSString *pdfPath = [[NSBundle mainBundle] pathForResource:@"GameKit_Guide" ofType:@"pdf"]; const char *filename = [pdfPath UTF8String]; pdfDocument = GetPDFDocumentRef(filename);//user function to get pdf in pdfdocument form. myTable = CGPDFOperatorTableCreate(); CGPDFOperatorTableSe...

NSArray + remove item from array

How to remove an item from NSArray. ...

Detect a url in a UITableViewCell

Hi, I'm developing an iPhone app where I take the twitter feeds to a table view.currently I'm inserting a label as a sub view to the table cell to display multiple details.What I want to do is to detect urls inside that label where when we touch the urls,it should open up in safari.How can I do that?.....Hope you guys will help me. Tha...

Asynchronous request to the server from background thread

I've got the problem when I tried to do asynchronous requests to server from background thread. I've never got results of those requests. Simple example which shows the problem: @protocol AsyncImgRequestDelegate -(void) imageDownloadDidFinish:(UIImage*) img; @end @interface AsyncImgRequest : NSObject { NSMutableData* receivedData; i...

iPhone App Product Name

Hi all, I am having problem with the XCode->Project->Edit Active Target "projectname" setting I am trying to set the "Product Name" as "My App" , but while running the app in the device. I am getting an error as Illegal Character present in Product Name. I even tried with - and _ (My-App , My_App) but none of these works. However it ...

How to disable UI Tool

hi, if in my view there are buttons and UITextfields and i want to create a condition that whenever ,i click on any button at that time other UIButton and UITextfield will be disable. How Can i do that??????? ...

For Question About a Warning In Objective-c Coding

hi, I have one file viewcontroller.h and .m and viewcontroller1.h and .m In viewcontroller1.m file , i write function like BOOL rechable = [viewcontroller functionrechable]; it gives me warning like warning:initialization makes integer from pointer without a cast how to remove this warning??? is it any way to do it? ...

Watch window for XCode debugging

Is there any watch window to see variable value in XCode during debugging? Can we check value just typing variable name as in watch window? On mouse over, I can't see value for dictionary type objects. I see "Variables View" option but it has only first option enabled. in "Debugger" window, I can't type variable name. Watchpoint stops ...

Creating Custom Cell takes the iphone app into an infinite loop

Hi! I have created a very simple application where I am trying to insert a custom cell in a table view. However, whenever I return an instance of the Custom Cell, one nothing is displayed on the screen and second, the application enters some kind of weird infinite loop. Any help would be much appreciated. I have attached my code in this...

Animating custom callout for MKAnnotationView in MKMapView with "pop in" effect

I finally managed to put together a custom callout UIView that gets shown when a MKAnnotationView is tapped. I did this by overriding - (void)setSelected:(BOOL)selected animated:(BOOL)animated; in my custom MKAnnotationView subclass. Note: I prevented the main callout from showing by setting the canShowCallout property to NO. I'd ...

Mapkit routes and google license

So, this question is not if I can do routing with mapkit. You can't with the API. So I found the clever way of using an annotation to render a route between two points. The route is based on a series of lat/long values. In my app, I use it to render a route (but not for vehicles or walking). There is no list of directions, so it's ...

iPhone SDK: handling keybaord appearance

Hi, I need to move UI elements of my view controller when keyboard appears. I do this by registering for the keyboard notifications in my app delegate: [[NSNotificationCenter defaultCenter] addObserver:observer selector:@selector(keyboardWasShown:) name:UIKeyboardDidShowNotification object:nil]; [[NS...

iphone force portrait mode from landscape?

I have a complicated structure where I have a custom tab-bar controller that houses multiple navigation controllers. Some of these sub-navigation controllers only support portrait mode so I just turn off rotation when I get to them. When I come into the new navigation controller and it is in landscape is there a way to force auto-rotatio...

Is this kind of crash report useless?

I tried use "PLCrashReport" to collect the crash info then make the app more stable, but turns out that the report is like this(dont even has a call stack,how am I suppose to use it?): The "Exception:" part,Exception: (null): (null), which should be "exceptionName" and "exceptionReason", at most time are "null", dont know why, sometimes...

Disable iPhone table rows

Is there any way to disable the "selectibility" of a UITableView row? Example: I would like to make an appointment for a haircut at a certain time with a certain stylist. What gets displayed to a user is a list of times in half hour increments, but unavailable times are grayed out/unselectable. ...