iphone

Can I provide a download button for content in an iPhone app?

I am working on an iPhone application called IYoga-Classic which will provide high quality videos for Yogs instructions. I want to add a download option to the videos so that the users can download their desired positions even when they are offline? Is there a way to do this? ...

stringWithContentsOfURL not working with certain string

Hello, I have code similar to the following with a URL like this... If I use the first *url, webpage will return null. If I put this URL into a URL shortening system like bit.ly it does work and returns the pages HTML as a string. I can only think I have invalid characters in my first *url? Any ideas? NSString *url =@"http://www.t...

Using sleep within iPhone apps (esp. with UINavigationController)

Hi, I'm pretty new to iPhone development but I'm close to releasing my first app (related to a website I run). The app requires a very large database and as such I've decided to store only the most commonly used data locally, retrieving the other data via a JSON web service call from the database my website runs off. Whilst performing O...

Design tips for StoreKit in iPhone OS 3.0?

I am going to implement StoreKit in an iPhone application and wanted to know if there is any experience out there already that could point out any pitfalls or traps in using StoreKit? I know the API is new - but there is some premium content in my app that I would like to ask users to pay for and this seems an ideal way to do it - rathe...

Retrieving a pixel alpha value for a UIImage

I am currently trying to obtain the alpha value of a pixel in a UIImageView. I have obtained the CGImage from [UIImageView image] and created a RGBA byte array from this. Alpha is premultiplied. CGImageRef image = uiImage.CGImage; NSUInteger width = CGImageGetWidth(image); NSUInteger height = CGImageGetHeight(image); CGColorSpaceRef col...

Prevent UIWebView sliding off the screen (iPhone)

I have a full screen UIWebView component on the screen with fixed size content, so no scrolling required. When I nudge the screen the content in moving up or down. The same effect can one experience all over the iPhone when there is a scroll-enabled component. I would like to prevent this happening in my application. Please shed some ...

Is it possible to adjust the width of a UITableViewCell?

I would like to know if it is possible to adjust the width of a UITableViewCell. I would like to put an image to the left of it (like the Contact view in Address Book). I found a post here that provides a picture of exactly what I am trying to accomplish. I would also like to confirm the answers to this post. ...

Can we change keyboards programmatically.

Can we change keyboards programmatically. can we give user option to change keyboard to different language from application at runtime? kindly reply. thnx in advance ...

Is there a library or framework for setting preferences from within an iPhone application?

Using the Settings.app on the iPhone isn't that hard. In fact Xcode does the most of the work for you. Just add the Settings.bundle to your project and there you have it for nearly no cost. At the moment I'm developing an application for the iPhone which requires the user to fill out several "forms", mostly key-value pairs, some sliders...

Reloading tabs in an iPhone tabbar and setting the selected index

I am having trouble reloading the tabs in a tab bar and then having the correct tab selected. When a user chooses a particular function in my app - this means I need to reload the tab bar at the bottom of the screen - and sometimes add buttons and other times remove. I am able to reload the data using: [self.tabBarController setViewCo...

iphone collision detection problem using chipmunk

I have 2 slight problems : chipmunk collision detection : i'm developping a game where i detect collisions between a ball and some static polygon shapes. this is working but "partially", meaning that it works for around 5 game scenes (level 1 - 5 , for ex.) but fails for the 6th one, and then on the 7th scene everything works ok etc.. b...

is it worth using core data for a simple sqlite app on the iphone with one table and no relationships or complicated subtable/views?

From now on should one use core data as a wrapper for a small iphone app with an sqlite single table database? Does it unnecessarily complicate things or is it good practice to use from now on? ...

iPhone 3.0 Compass: how to get a heading?

I'm relatively new to Objective-C and really don't know much about it yet, so I apologise for what is probably a really amateurish question. I'm trying to get the magnetic heading from CLHeading and CLLocationDirection. However I'm getting compile errors for this line of code: locationLabel.text = [[[location course] magneticHeading] ...

What programming skills I need to become an iPhone developer?

I have almost 3 years of programming experience in windows world. I know C and C++ (part of my college education) and have been working on Delphi and C# professionally. I am thinking about learning some iPhone development stuff. What programming/software skills I need to dive in? ...

Multiple Image Operations Crash iPhone App

I'm new to the iPhone App development so it's likely that I'm doing something wrong. Basically, I'm loading a bunch of images from the internet, and then cropping them. I managed to find examples of loading images asynchronous and adding them into views. I've managed to do that by adding an image with NSData, through a NSOperation, whic...

Testing for the class type

When I send an object to NSLog, I get a string with three attributes. First is the class of the object, second is the frame of the object, and third is the CALayer of the object. The second and third attributes are titled (e.g. layer = ), so I can call them by the title (e.g. myObject.layer). The first one isn't. How do I test for the c...

What is a good project / way for an out of practice C++ developer to get back into it?

Like many people here, I started my programming experience with the good ol' green screen BASIC that you get when you booted an Apple II without a disk. I taught myself C++ in my teens, and even took a class on it in college, but as soon as I discovered .NET and C#, I dropped C++ like a bad habit. Now, (many) years later, I'm interested ...

A Table Within A Table

Hi Guys, I am fairly new to programming and I am working with Objective C. I am trying to program an app where you have a UITableView, than you click on cell, which will bring you to another UITableView with more options. I have only encountered problems, however, in populating this second UITableView. Any suggestions for how to do t...

How to use an Audio Unit on the iPhone

I'm looking for a way to change the pitch of recorded audio as it is saved to disk, or played back (in real time). I understand Audio Units can be used for this. The iPhone offers limited support for Audio Units (for example it's not possible to create/use custom audio units, as far as I can tell), but several out-of-the-box audio units ...

how to count tap in simulator ?

how do i count double tap in simulator? ...