iphone

Google Spreadsheet API on iPhone - Adding a new worksheet and a header

HI All, Does anyone have the code for adding a spreadsheet with header using GDATA API. I'm able to insert a new worksheet, but I'm not able to add a header to that. Can some one please help me with that. Thanks, Srinivas.m ...

How to capture system stats on the iPhone?

I'm trying to write an iphone app that would mimic the top system utility available on *nix systems. It seems as if system() and/or popen() should enable me to capture output from system commands executed on the iphone. However, the following code gives no output for either popen or system. Is there some other way of getting this info...

Iphone Core data question

Hi, I have set up the application with 2 entity, called Category1 and category2. There is a to-many relationship between category1 and category2. When a cell is pushed in tableview (category1), a new tableview will display all category2 cells related to category1. Here is what an example: I have two category1 items in the first table...

How to resize a UITableViewCell's accessoryView based on size of cell?

Is it possible for a UITableViewCell's accessory view to be sized based on the size of the UITableViewCell that owns it? How can I achieve this? ...

Selling an Upgrade to a Full-Featured iPhone App

Hello, I have two iPhone apps - one provides maps, online and off. The other includes the map application, and also provides a GPS recorder. I would like to sell the Offline Maps app, and then have an option within the app to upload to the full application. How would I go about doing this? In my code, I build two different targets aga...

how to copy files to Library or Document dir in iphone build phase?

I want copy some files to Library or Document in the "Product directory" but when i add a build phase, and select "Products Directory" in destenation and input my subdir like "Library/xxx/" when I run the app in simulator, i found nothing int the destenation and if I set destenation to "Resources", it will be there. please tell me w...

UIImageWriteToSavedPhotosAlbum showing memory leak with iPhone connected to Instruments

Hi, I'm using version 3.0.1 of the SDK. With the iPhone connected to Instruments I'm getting a memory leak when I call UIImageWriteToSavedPhotosAlbum. Below is my code: NSString *gnTmpStr = [NSString stringWithFormat:@"%d", count]; UIImage *ganTmpImage = [UIImage imageWithContentsOfFile:[[NSBundle mainBundle] pathForResource:gnT...

Titanium Developer for iPhone

Hello, Am looking into developing an iPhone native app using Titanium Developer - http://www.appcelerator.com/ Since this is still in beta, am wondering if there are any better options and/or if its a good idea using such software to develop native apps (which are not games; not graphic intensive) Thank you for your time. ...

Question about iPhone 3GS Image Picker Controller

I am writing a simple video uploader application on iPhone 3GS where I first direct the user to photos album, and then select the video to share or upload. I am using the UIImagePickerController in the following way: videoPickerCtrl = [[UIImagePickerController alloc] init]; videoPickerCtrl.delegate = self; videoPickerCtrl.sourceType = U...

Play sound using AudioQueue in iPhone

Hi, I am totaly newbie in developing audio based application. I have explored AV foundation to play and record audio. And it plays fine for the pre-recorded file. But, I want to synthesize sounds(of different frequency) and play it like piano app. Is it possible with AudioQueue? Please provide me some tutorial, links or code base. ...

UIButton Animation inconsistent

When I tried to animate moving a button from position A to position B. I set the speed to 2.0, but sometimes it can get to position B, sometimes it can't which is "playBtn.frame = CGRectMake(startX, 28.0, 37, 37);" It's inconsistent for the animation ending position. Could anyone help to answer what's the problem? How to make it anima...

Erase and Unerase Image

I am having two overlapping images. If I erase a portion of the above image, that specific portion gets erased and the underlying image should appear. But if I unerase that particular portion it should give me back the erased part of that image. I don't require undo functionality but only the erased portion should appear. Here is the c...

How to develop products on mobile phones

Hi there, Recently we are going to develop some products on mobile phone (specially for 3g). There are many platforms about mobile phones: iPhone OS, Symbian, Black berry's... If I want to develop a product, should I use Java or write every program for the main platforms? Particular one question for iPhone development: are there many J...

Add a UIImageView as a subview of a UIViewController without using IB

In my UIViewController's viewDidLoad method I instance a UIImageView instance called stage: stage = [Stage viewWithParent:self]; and that calls this: - (id)initWithParent:(UIView *)parent { self = [self initWithFrame:CGRectZero]; if (!self) return nil; [parent addSubview:self]; return self; } + (id) viewWith...

How can I retrieve the name of the user's current city?

I would like to retrieve an iPhoneOS user's current city. How can I do that? ...

How to retrive user's current city name ??

hii i want to retrive user's current city name ... can any one help me .. urget require .. thanks ...

notification for touches ended

Hi, I am a little newbie regarding notifications on the iPhone. What I am trying to do is this: I have an object using a class based on UIImageView. This class has its own implementations of touchbegan, touchesended, etc. Is that possible for the main program to know when the user lifted his finger from the object? In other words, is...

How to present a modalview on top of other modalview

Ok, this might be easy.. To present the first view controller modaly : WelcomeViewController *userWelcome = [[WelcomeViewController alloc] init]; [self.navigationController presentModalViewController:userWelcome animated:YES]; [userWelcome release]; this far everything is fine. But, how to pull a second view controller modaly on this...

How to disable coreLocation in the iPhone simulator?

How do you disable coreLocation on the iPhone simulator? I'd like to test some stuff but can't find a way to disable it. ...

Adding Facebook Connect to my iPhone Project

Hi all, I'm having trouble adding Facebook Connect to my iPhone Project. Here's the directory structure: -> MyProject ----> MyProject.xcodeproj ----> fbconnect-iphone ----> build/ ----> <other files and folders> As directed, I opened fbconnect-iphone/src/FBConnect.xcodeproj project file. I dragged the FBConnect group into my appli...