iphone

iPhone multiple subview animation

Hi there, I'm writing my first app with animations and I'm getting into some troubles. I have a ViewController which creates programmatically a certain number of UIView added as subviews. Now, when I touch one of these views I'd like to move it in one direction (up, right, down, left) but only if in this direction there isn't another vi...

User Defined Runtime Attributes in IB for iPhone not working

Hi guys. I have a weird problem. I am trying to setup User Defined Runtime Attribute in the IB. As shown below I setup a NSString statID attribute in my viewController and wanted to give it a test value 00000 in IB When I compile that I get this error when building: "User defined runtime attributes on Mac OS X versions prior to 10....

Can someone please explain CMTime for iOS4?

I would like to use AVPlayer Class' seekToTime. It takes a CMTime. I read the CMTime reference from Apple but its is very hard to understand. Can someone please give me an example on how to use... - (void)seekToTime:(CMTime)time ...

iPhone Ads Issues White Rectangle and Not able to go back to original application.

I am trying to integrate iPhone ads in my application. I run the app on my device and sometimes the ads are displayed in the form of "Text Ads here" which means the ads are rendered properly. But sometimes all I see is a white rectangle and no ads or anything. Anyone experience the same issues? Another problem is that when I click on th...

combine two functions into a UITableViewCell: selection and information

I'm using a UITableView to present options to the user. The user can select one option by clicking on one of the cells. The concept is similar to the Radio input in html forms. I'm looking for some ideas on how to combine two functions into a UITableViewCell. I've taken care of the selection function. I would like to also let the user g...

adding a View when project started from "Window-based Application"

Hi all, i have some trivial question that is bothering me. When i create a new project using "Window-based Application" eg. for iPhone i have its app delegate declared, then for example i want to create one additional UIViewController/nib pair and add it to the main window view as kinda of "entering point view" - i'm trying to avoid to e...

anything faster than iphone veency

I want to be able to control iPhone (see iphone screen on computer, and control via mouse clicks) via PC/Mac either through USB or wireless. Is there any solution that's faster than VNC Veency (frame rate not good enough on Veency, and I need 16 bit color)? ...

iphone Ad Hoc Distribution no appearing in itunes

I have found a problem trying to install an ad hoc distribution on my itunes. 1) I have distribution certificate 2) I have distribution profile 3) I have add entitlements.plist, although from what I read this is no longer required. it looks like the plist does not even have a get-task-allow bool anymore to set. I have tried with adding...

Adding "Open In..." option to iOS app

On iOS devices, the Mail app offers "Open In..." option for attachments. The apps listed have registered their CFBundleDocumentTypes with the OS. What I am wondering is how my app might allow users to open files generated by my app in other apps. Is Mail the only app that provides this feature? ...

How do I draw a line in Titanium?

How Do I draw a line in Titanium that works in both Android and iPhone? ...

I'm trying to turn on the iPhone 4 torch but it just won't turn on

So I followed the WWDC session 409 about using the camera/flash/torch/etc as a device on the iPhone 4 and I was able to write the chuck of code below. It's compiles without any errors but when I try the execute it on my iPhone 4 nothing happens. Can someone help me figure out what i've done wrong. I'm also trying to get the torch to turn...

Calling a method back on the parent controller without a warning message

I have a front-view and a flip-view much like the utility weather-app. To avoid dealing with the complexities of protocols... on my flipView I need to call some code that resides back on my front-view. This works... but generates a warning during compile. [self.parentViewController returningFromGetStringView]; Warnings (shows twice)...

What are the first things people do when starting a new iOS project?

Hello, world! I recently started diving into iOS development and am happy to announce my first free app has been approved by the App Store (don't worry, I won't spam it on here)! Now that I feel more comfortable with building iOS apps, I'd like to begin building out some ideas I have for more advanced, paid apps. As such, I need to co...

Print option in iPhone

How to enable print option in iPhone apps ...

MPMoviePlayerController questions, best practices

I have any number of thumbnail images that, when tapped, will play a different video (fullscreen). I have never been clear on whether I should keep one MPMoviePlayerController object in my view controller and have it play whichever url according to the thumbnail that was tapped, or create a new MPMoviePlayerController each time. What is ...

How can I remove objects in Box2d after collision, but with a delay?

I am using cocos2d and box2d in my iPhone game. When two balls hit each other, I get a notification though the ContactListener and I have a reference to both bodies. I can destroy both of them, but I would like to do it with a delay. So, two balls hit each other, they bounce off and then after a second disappear. ...

How to take control of Dismissal of UIAlertView in iPhone

Hello all, I need to know if I can decide in the action method of the Buttons of UIAlertView whether to dismiss the alertView or not. In short On click of certain buttons of AlertView, I dont want my alert view to dismiss. ...

Filter Companies from Address Book References

Using the 'AddressBook.framework' is it possible to filter out all companies (i.e. just people). For example, how would one modify the following code to remove companies: ABAddressBookRef addressbook = ABAddressBookCreate(); CFArrayRef contacts = ABAddressBookCopyArrayOfAllPeople(addressbook); I found that companies do not appear to b...

Accessing a class' instance variable (NSMutable Array) from another class

Hi all - new to Obj C and programming in general - learned a lot from this site and really appreciate everyone's contributions. My scenario is as follows (programming an iPhone game which explains the funny names) In my main gameLoop (which is in my view controller) if a certain condition is met I create an enemy - the cherry bomb if ...

Writing classes that work in both iOS and Mac OS.

What is a good way to write classes that can be used in both iOS and Mac OS applications? I'm not trying to get a full cross-platform UI solution here, just a way to use several model classes from my iPhone app in a support application running on the Mac. Some of those classes require a few minor changes to get them compiling under Mac O...