iphone

how to create an "array of selectors" in objective-c

Hi, i'm using the iphone sdk (3.0) and i'm trying to create an array of selectors to invoke a variety of methods within one class. Obviously, I'm doing something wrong (I think @selector isn't considered a class and so stuffing them into an NSArray isn't working). I tried this, but it's obviously wrong. Is there a simple way to have...

iPhone Compass: Adjust Heading to get Correct Reading in Landscape

Does anyone know how to adjust the iPhone's compass reading to adjust if you use it in landscape mode? The heading is always taken from the top of the device, but a true reading should be available if recalculations are made with the accelerometer data. ...

How to delete ALL FILES in a specified directory on the app?

Given a directory [[self documentsDirectory] stringByAppendingPathComponent:@"Photos/"] how do I delete ALL FILES in this folder? (assume a correct documents directory path) ...

Core data object comparison

Is there an easy/generic way to compare two objects to see if they are the same? By 'same' I mean identical entity name, all attributes and relationships are the same, but the internal object ID is different. Similarly, is there an easy/generic way to find the differences? ...

iPhone: Download PDF and store locally?

I am able to successfully view a PDF from a website. I want to be able to download that PDF to the device, then be able to access that file locally. So the user opens the app, the app checks the online PDFs date and compares it to the date of the PDF store locally, if it is newer, then the new PDF is downloaded, if its not newer then i...

Where's a good article or tutorial to learn more about MVC on the iPhoneOS

Basically what the title says, where is a good tutorial or article about Model-View-Controller relationships that is relevant or specifically about the iPhoneOS? ...

Javascript Database Mass Insert

I am trying to insert over 70,000 rows into a javascript database (using Chrome 5.0.317.2). The inserts are taking a very long time. The actual page loads in a few seconds, and I can see progress as the percent increases very slowly as each row is inserted. It took about an hour to finish inserting all the records. Is there a way to opti...

MMS Streaming in iPhone Application

Hello everyone!! hope you all are fine and also in one of your best of moods!! I have a query to ask you. I have few mms at server side. I want to stream those mms clips and want to open in my Application. anybody has any idea how to do this?? kindly share your knowledge... Looking forwards!! Regards, Arun Thakkar ...

Iphone development

I am new to iphone .How can i develop appstore using store kit .can any one explain the necessary steps ..Thanks in advance ...

to submit iPhone application to app store do we need our own server in all cases?

Hello all: i read this overview of the StoreKit API but could not understand the role of developer's server exactly, will you please elaborate the role and is it mandatory to have if i need to submit an application ? Thanks in advance.. ...

iphone weird crash on device but not seen in simulator

Hello, I tried to install and run one of my applications on device. On a simulator, it was working fine. But once on device, it crashes somehow. I was trying to debug but i could not get anything there. Here is what the debugger console shows.. Can someone please help me with this..: Here is the debugger log: Program received signal EXC...

how to get NSmutable array from the NSMutableDictionary?

I have use below syntax for for set the object. [dict setObject:eventArray forKey:categoryName]; Now i am trying to get below syntax but i got nothing. NSMutableArray *tempArrayValue=[[NSMutableArray alloc]init]; tempArrayValue =[tempDict valueForKey:categoryValue]; What is the problem i cant understand can u help me? ...

What is the best way to make a UIButton checkbox?

I am trying to make a standard check box for my iPhone app from a UIButton with a title and image. The button image changes between an "unchecked" image and a "checked" image. At first I tried subclassing UIButton but UIButton has no -init*** method to use in my -init method. What is the best way to do this? Thanks in advance. ...

How to detect scrolling of UITableView?

There is a similar question to this but answer is very general, vague.(http://stackoverflow.com/questions/1587855/detecting-uitableview-scrolling) Please don't dismiss. I am looking for concrete solution. I have UITableView which has editable textfield and PickerView appears when another cell selected. What I need is to hide firstRespon...

How to update NSMutableDictionary ?

I have an NSMutableDictionary. NSMutableDictionary* plistDict = [[NSMutableDictionary alloc] initWithContentsOfFile:path]; I have to update an element in that dictionary. How i can do that ? Thanks in advance ...

Issue DSI Commands (NSURLConnection?)

How would I issue DSI Commands on iPhone? DSI Commands are used to communicate with an AFP server over TCP. http://en.wikipedia.org/wiki/Data_Stream_Interface Is this something that can be done via NSURLConnection? Thanks! ...

iPhone + UITableView + place an image for separator

Hello, I have UITableView in my application. Attributes: TableStyle = Plain, SeperatorStyle = single and SeperatorColor = black What I want to do is that, I want to put a image (which a small strip), as separator for the table. Please help me. Regards, Pratik ...

Application Icon(57*57) and Large icon(512*512) it should be same picture?

so wonder is it need to be the same picture? it can use difference picture ? ...

How can I store an image in the iPhone device file system so that later if I want I can retrive it and use in my app?

Hi All, I am trying to store an image in the device through my program. I am able to store the image in the sandbox. After quitting the app when I run it again the address of the sandbox changes so I am not able to retrive it and use it in the next run. Please help. Thank You All. ...

data sync from rails with iphone sqlite db

Hi all, I'm wondering whether there is a bossibility to export some selected data from my rails mysql db to a other sqlite db. The aim is to send that sqlite file directly to my iPhone application... That way I don't have to do a lot of xml integration in the iPhone app. That seems to be very slow... Markus ...