iphone

iPhone Team Provisioning Profile - Invalid

On the iPhone Provisioning Portal, it shows my iPhone Team Provisioning Profile is Invalid. There is a "Managed by Xcode" text. The "renew" button is disabled. How can I fix that? Thanks ...

Image capture from camera and save it to string

I'm right now taking hardcode image in 1 string located in the Resources folder and then Uploading and downloading through processing that string. My first task is still remaining. I want to capture the image by camera and want to save into the Resources folder and also want to give it to 1 string. ...

Dragging text around in an iPhone app

Hey all, First time posting, so thanks for any help - great site here! I'm new to iPhone programming and am wondering how best to approach this problem: I have a background image and I'd like to place text on the image and let the user drag the text around on the image. Nothing fancy, really, but I'm not sure I am approaching it right ...

How to show Hi-Res stretchable backround image in UIButton?

Hi. I'm setting up a custom button with an oval background image in UIView. In iPhone OS 3, [UIImage:stretchableImageWithLeftCapWidth:topCapHeight:] works fine. But, in iOS 4 with iPhone 4 (means Hi-Resolution), the background image doesn't stretch out. Here's the code in question: UIButton* btn = [UIButton buttonWithType:UIButtonTyp...

Manage Database on iphone

How could I manage Large online database on Iphone? Should I have use other than SQLite3? ...

Storage Space/HD space on iPhone via code

How do I get the amount of storage room left on the iPhone? I need to be able to ge the info that you can get with appbox pro, ie. space used, space available, space total, all in GB. How can I access it in-app without the use of private APIs? Thanks ...

Subscription based in-App Purchase tutorial

Hi All Is there any tutorial to implement Subscription based in-App Purchase.If any then please mention the link or post the code. Thanks in advance. Regards sanjay255310 ...

Application Loader error - CFBundleResourceSpecification missing and icon.png getting renamed??

Hi all, I am running into a problem with a client uploading their app to the app store. We are having two issues: The application loader gives the following error: 'Info.plist does not contain a CFBundleResourceSpecification'. When they build the application for distribution, the plist reverts to having icon.png instead of Icon.png ...

How to parse a locally stored XML file in iPhone?

How to parse a locally stored XML file in iPhone? please help me with this using code snippets ...

How to show status bar on top of custom camera overlay ?

Hi friends, I have this critical issue with showing top statusbar on the custom camera overlay which seems impossible for me at the moment. I posted the same question to Apple dev forum but did not get any response for some time now. In my application, I have a custom overlay view set as the overlay to the UIImagePickerController. At th...

PHP's strtotime in Objective C/iPhone

Is there an equivalent (or vaguely similar) to PHP's strtotime in Objective C/iPhone? strtotime can for example understand the below time expressions (from the php documentation): echo strtotime("now"), "\n"; echo strtotime("10 September 2000"), "\n"; echo strtotime("+1 day"), "\n"; echo strtotime("+1 week"), "\n"; echo strtotime("+1 ...

iPhone UINavigationBar custom look and feel

I have been trying to figure out how to display a background image behind a UINavigationBar on my iPhone app and have come across the same solution many times which is as follows: @implementation UINavigationBar (UINavigationBarCategory) { - (void)drawRect:(CGRect)rect { UIImage *img = [UIImage imageNamed: @"logo_bar.png"];...

Objc memory problem at arrays

Hello guys! Here's my code: NSLog(@"rc: %d", [_pagesButton retainCount]); NSMutableArray *anArray = [[NSMutableArray alloc] initWithArray:_toolbar.items]; NSLog(@"rc: %d", [_pagesButton retainCount]); [anArray removeObjectAtIndex:2]; NSLog(@"rc: %d", [_pagesButton retainCount]); [_toolbar...

Question related to API

What is API? What is Importance of it? give me example of it? how can developer use API? ...

Exporting sqlite data in pdf and csv format

Hi Fellas, I am new in iPhone application development. In my application i need to export the data that i have in sqlite into pdf and excel sheet format, also after that i have to give a provision to attach that generated pdf or csv files in an email and send it to same. Kindly help!...I am really screwed. I need codes for it Thanks in...

Cocos2d touches snap sprites if move one over another

Hi I'm having problem with touch events. I have a class (Inheritance from CCLayer) that return some sprites with touches events. I have around 10 of this same class with different sprites. Kind like a domino. The problem is that if I move the sprites I have defined on this class over another, they snap to each other. My .h file: @...

iphone multilanguage support

Hi everyone, I'm developing an Iphone app that has to support different languages. I saw that the language has to be set within my app and not within iphone settings. So, do I have to force the language instead to take the current one? I didn't find examples over the internet. All examples need the current language of the application. I...

How to Get System Color in iphone?

I have used following code to set background color [self.view setBackgroundColor:[UIColor groupTableViewBackgroundColor]]; but it results into black background instead faint lining blue? Where am i going wrong? so how to get proper groupTableViewBackgroundColor? ...

how to draw airbrush on UIImageView?

I am a beginner working on paint application on iphone. adding new tool for my iphone App called airbrush... which will spray on UIImageView. can any one help me out how to work with it. ...

How to get the CPU usage of iPhone/iPad?

I saw in A+ monitor, it can show CPU Idle, CPU usage, CPU System. Which API should be used to get the these information? I have searched and I use the getloadavg function, but it can only return the CPU usage. Also it is not correctly for it will always be more than 90%. Thanks! ...