iphone

Is there a way to create a scrollViewISZooming method similar to the scrollViewDidEndZooming?

I am looking for a way to create a scrollViewIsZooming method that is called while zooming is occuring. Does anyone know of a way to do this? I am wanting to use it to keep the content centered in the scrollView while zooming. If I use the scrollViewDidEndZooming method, the content snaps back to the center after zooming is finished. T...

Can iPhone API access Mail/Messages/etc.?

My iPhone App needs to access messages (SMS), email and push events on apps. Is it possible with API? Important enough - my app does not need to capture them in the background (I know this is impossible), but just when it's launched being able to load/aggregate/analyze them (for specific search/analytical purposes). Thank you! ...

Monotouch auto resizing views in iphone

I have created a view in interface builder that contains another view (content area) and a button bar at the bottom. The hierarchy is as: ->View --->mapContainer UIView ----->map MKMapView ----->OverlayView UIView --->ToolBar UIToolBar I would like the mapContainer to resize to full window when the ToolBar is hidden. I would like the...

iPhone dev - why is it using 8MB ?

Even when I just use the Window-based application template, which does literally nothing, instruments (activity monitor) says my application's process is using 8.14MB of Real Memory! Even with this method: void report_memory(void) { struct task_basic_info info; mach_msg_type_number_t size = sizeof(info); kern_return_t kerr =...

iPhone: There is no SDK with the name or path 'iphoneos3.0'

A friend of mine just had to reinstall his OS (after power went down while updating) and when he installed Xcode he got this error. In the drop down that usually has device/simulator etc, it said 'missing'. I also noticed he had no developer folder on his machine as well. Anyone know why this might be? ...

Can I set the insertion point on a UITextField

I have a UITextField that I want to present to the user with a pre-filled suffix. Obviously, I'd like to have the insertion point set to the beginning of the pre-filled text. It doesn't seem obvious to me how to do this (there's no insertionPoint property), but is there a tricky way to get this done? ...

iPhone properties getting set to nil

I set a property with this declaration: @property (nonatomic,retain) NSDictionary *itemData; to a dictionary with 1 key - val pair. The table view in my view then gets the one value for the dictionary fine as a section header. But when I go back to access that very same value, it is nil. Any suggestions? I have been working on this f...

Appending string to UILabel text?

Hi, I'm starting to develop for the iPhone. I have a beginner-type question, I'm sure: I have this, which works: testLabel.text = [NSString stringWithFormat:@"%@ to %@", testLabel.text, newLabelText]; I wish I could use the "+=" operator, but I get a compile error (Invalid operands to binary +, have 'struct NSString *' and 'struct NS...

Objective C memory leak issue..

The Leaks instrument tells me that I have a leak in this code fragment. Why is this so? This code fragment is in viewDidLoad(). UINavigationItem *navItem=[self navigationItem]; UIBarButtonItem *addFeed = [[UIBarButtonItem alloc] initWithBarButtonSystemItem:UIBarButtonSystemItemAdd target:self action:@selector(addFeed)]; [navItem setRi...

How to export to CSV from sqlite3 on the iPhone?

How can I export data from an sqlite3 database in Objective-c? Can I issue a dump command at least? What options do I have for exporting? ...

Is there a simple UIViewController that displays one photo?

I know three20 has a PhotoViewController but it seems like overkill to just include the whole framework just to load one picture from one URL. Does anyone know of any code/lib that displays one picture when give one URL? ...

JSON IPHONE: How to send a JSON request and pull the data from a server?

Hi, I know barely nothing about JSON and I need to send a request to a server and read the data coming from it, using the iPhone only. I have tried to use the jason-framework to do that, but after readin the documentations I was not able to figure out how to construct the object and send it on the request. So I decided to adapted anoth...

iPhone + download videos

Hello, How to create an application, that will allow users to download videos to their iPhone from some server. ...

Objective C: How do I substring an email address in text field to firstpart separated by @

Hi guys, I have been scratching my head trying to find any resources on substringing an email address I get from a textfield into getting the first part before the @ symbol. Ive tried looking at the documentation, playing around with the componentsseparatedbyString. No luck. Thanks for your help in advance ...

iphone - want to store data in plist.

HI, i want to store some data in plist file. my question is if i change data in plist file do i have to recompile my application ?? ...

changing the color of titleFor Header in section

-(NSString *)tableView:(UITableView *)tableView titleForHeaderInSection:(NSInteger)section { hi i am very new in objective c.......................through this method we can get the title for header section .but how to change the color of that string??can we do that........if any one knows that please tell me. Regards ...

Possible to hook into the phone calling functions with current iPhone SDK?

I've heard it mentioned elsewhere, one cannot programmattically hook into the phone call area of an iPhone using the current SDK. I'm looking to learn iPhone development and Obj C, with the end goal of creating a call timer app that runs in the background and alerts the user when a call has gone on too long. Is it even possible to hook ...

How to play audio and video together in iphone

Hi, I want to play some videos with audio from different audio files. For this i am playing a video(using MPMoviePlayerController) and i am playing an audio(using AVAudioPlayer). When i play my code through simulator it works fine (the video with my audio file specified). When i run the application in device it doesn't work like that. ...

iphone 3gs how to get first image from picking video

Hello i tray to take fist image from selected video in UIImagePickerController for show in UIImageView, but i do not know it's possible? if it is, how? Thanks ...

iPhone App crashes on device with OS 3.1 not in simulator

The app crashes on the tester's device (with OS 3.1) but does well on the simulator and my device with OS 3.0. I have the crash log but I am finding it difficult to understand the reason of this crash as I cannot see the mentioned crashed thread (usually shown in a crash log). What does this mean? "Unknown thread crashed with unknown f...