iphone

Getting the time elapsed (Objective-c)

I need to get time that elapsed between two events: for example between appearance of UIView and between user's first reaction. ...

iPhone sdk - accessing current song information through an app.

Is it possible to retrieve the info about the current song being played. I'm looking to get the artist and title so I can then display this on an app? ...

Objective C makes integer from pointer without a cast passing objects as args

For more info on fix this error, see here I'm trying to make blackjack in objective C, and am having trouble passing objects around. My Hand class basically takes a deck and draws cards from it, adding them to an array. Here's the Hand methods involved: - (id)init : (Deck*) deck { [self draw: deck]; [self draw: deck]; retu...

When Apple talks about "Memory", what do they mean?

For my understanding there are always two types of memory: the working storage the "disk space" So when you have a 16 GB iPhone, does it have 16 GB of working storage? or 16 GB of "disk space"? Which "Memory" is Apple talking about in his Docs, when it comes to performance and memory management? It looks like the working storage, but...

What describes best the term "Memory Footprint"?

In the terms of Apple's Documentation: What does "Memory Footprint" mean? How much Memory my App consumes? Does someone have a good explanation for that term? ...

How do I create an local autorelease pool to save up memory?

Apple says that this is a good idea for saving memory. What would that look like in code? ...

How to print string value from breakpoint action?

I have a breakpoint action and am using the Log option from the drop down. I'd like to print out the string (summary) value. I'm doing this: the person name is: @p.name@ but that prints the memory address. I can switch to the Debugger Command option and do po f.name but then I loose my description, as used in the first option. ...

iPhone + JSON + Reflection

Hi, I'm writing an iphone application with JSON and am trying to turn JSON strings into objects (NOT Dictionaries or Arrays). In Java, thanks to Reflection, I can easily turn JSON into javabean instances like this: import net.sf.json.JSONObject; class MyBean { private String property; public String getProperty() { return prope...

iphone: finding coordinate of CGPath

I have drawn an line graph (as an unclosed path) with 10 (x,y) points by using CGContextBeginPath, CGContextAddLineToPoint and CGContextMoveToPoint . I would like to be able to retrieve the vertical coordinate (y) of the path where the user have given input of the horizontal coordinate (x) by touching the screen, so I can display furthe...

Can I use Core Audio effects on the iPhone ?

I know that a subset of Core Audio is available in the iPhone OS, but I don't know how much of all the effects / filters is available. If it is available, I would like to get some directions on how to apply some simple effects over an audio unit (delay, echo etc...). ...

Animating custom-drawn UITableViewCell when entering edit mode

Background First of all, much gratitude to atebits for their very informative blog post Fast Scrolling in Tweetie with UITableView. The post explains in detail how the developers were able to squeeze as much scrolling performance as possible out of the UITableViews in Tweetie. Goals Beginning with the source code linked from the blog...

Can a breakpoint be set for EXC_BAD_ACCESS?

Just as you can set a breakpoint for objc_exception_throw, is there an equivalent for EXC_BAD_ACCESS? ...

add a UIView above tableView problem

i have add a subView to UITableView in my application,after adding, the tableViewCell still clickable,how to prevent this?pls help ...

Which initializer(s) to override for UITableViewController subclass

I have a UITableViewController subclass that's instantiated, depending on where it's used, in a NIB or via code. In both cases I want to do customization in the initializer method. Does that mean I need to implement both initWithNibName:bundle: and initWithCoder:, and would each method call its respective super initializer? While I do...

Inserting records with SQL Lite

What is the SQL Lite statement for "insert"? I have tried insert into table1 values(field1,field2) values (?,?) but this returns an error in the statement -- how do I do this? ...

fixed positioning in MobileSafari

Is it possible to position an element fixed relative to the viewport in MobileSafari? As many have noted, position: fixed doesn't work, but Gmail just came out with a solution that almost is what I want see the floating menu bar on the message view. Getting real-time scroll events in JavaScript would also be a reasonable solution. ...

iPhone AdMob Video ad

Hi Guys, Please give me some ideas for the following two: I would like to test AdMob video ad in my iPhone application. For that I want to know whether there is any specific AdMob sdk call for showing video ads. Another need is, the ad needs to be closed automatically(not user closes the ad) after some period of time reached. ...

Is there an official documentation for the use of the App Store API?

I may want to write an tool that makes some App Store statistical analysis, if that's legal. I am wondering if there is any offical documentation for how to access the App Store API with third party Software. Does anyone know? ...

UITableView adding subview problem

i have a UITableView which have many row in a section. when i scroll down to the bottom row, and click a button to add a subview, my subview will display at the bottom on the screen rather than from top,can anyone help me to solve this problem ...

UITableViewCell not getting updated.

For every entry in the table view cell, I need a button at right then some text and again a button at the left. At the button click event I need to change the text (left/right button clicked.) and remove either of the buttons depending on the text conditions. I am not able to remove the buttons using cellForRowAtIndexPath method. I tried...