iphone

Which high quality iPhone video ressources do you know?

I'll start: iTunes U: The famous Stanford University offers the "iPhone Application Programming" courses online. http://itunes.stanford.edu/ I wonder if there are any more great video ressources to know, that have a reasonable quality. ...

I can't seem to get the new iPhone media player framework to work

I'm working in the 3.0 SDK so I can't use specifics, but anyone who is using it might understand, I hope. I have been trying to load a view that allows you pick from a particular list of items...but I can't get it to work here's the code I'm using, made to be generic: M**********Controller *newpicker = [[M**********Controller alloc] ...

What is your iPhone app testing strategy?

Before submitting to the App Store, it is a good idea to test the App once again precisely. I tend to install my App on a device and give it a friend for a while. Then I take the feedback and start changing my app accordingly. I'd like to know what your testing strategies are. ...

How to get UITextView to respect newlines in Interface Builder?

I have a simple app with a UITextView embedded into a UIScrollView. Interface Builder won't let me add multiple newlines for spacing; when I hit return it sees that as "end of input" rather than appending the newline to the UITextView. How can I get it to accept newlines for spacing? ...

What does the UITableView method "deleteRowsAtIndexPaths: withRowAnimation:" do?

***Update to Question***** If the tableview does not affect the model: Are the index path of onscreen cells changed to reflect their actual position OR are the indexes of deleted cells invisible until reloadData is called? **Original Question***** I know it marks the cells for deletion and animates the deletion, but what does it do t...

Model setup for data UITableView that will be filtered using a UISegmentedControl

I am making a UITableView with a UISegmented control ala the Recent Calls tab in the Phone app. The first segment will be all items, the next 2 will be subsets of the full list of items. I created 3 arrays which hold the 3 different lists of data. My first solution was a wholesale swap of the data and the a reload: [self setData:newD...

EXEC_BAD_ACCESS upon re-loading a UIViewController containing a UITableView

I get an EXEC_BAD_ACCESS when executing the following steps: STEP 1: Click on "Scores" button from a Main Menu: This Removes the Menu (UIView), and loads the Scores (UIView) which subsequently initiates the process of populating a UITableView with values. No problems here. self.viewController4 = [[ScoresViewController alloc] in...

UITextField - Did End On Exit Event

How do I programmaticly assign a method (Observer?) to the "Did End On Exit" Event on a UITextField object? This is easy enough to do in IB but I can't figure out how to do it in code... ...

C# to iPhone dev

I'm a C# development. Mainly web services, ASP.NET, ADO.NET. A guy wants to me to work build an iPhone app for him, from scratch. What do I need to know/do to get setup to start developing? I hear objective C is the language? ...

How to resolve 'unrecognized selector sent to instance'?

In the AppDelegate, I'm alloc'ing an instance defined in a static library. This instance has an NSString property set a "copy". When I access the string property on this instance, the app crashes with 'unrecognized selector sent to instance'. Xcode provides a code hint for the property, which means it is known in the calling app. The ...

How do I enable directional lock for a UIScrollView?

I have a UIScrollView with a UIView inside. I want to lock the x-axis so that the view is only scrolled vertically. How do I enable directional locking? ...

Move an UIImage

Hi guys, what is the best way to move an image along an array of dots? ...

iPhone SQLite File management

I'm developing an application and I'm using SQLite as my database storage. I want to add and update the sqlite database throughout my application duration, so i copied it to the documents directory so i can do all kinds of stuff with my database except only selecting from it. But since I'm developing "time", my database changes frequent...

How does unit testing on the iPhone work?

Do I need special libraries for this, or can I just create a huge class that trys to instantiate every object of my project and test all the methods in there? How's that done in theory? ...

How can I pass the database id of an image to an method, when the corresponding UIImageView is touched up?

I have a grid of UIImageViews. The images names come from a sqlite3 database. When the user selects an image, I need to call a method which will set that image as the preferred one. But to do this, this method must receive the id of the image in the database. Now, I have really no idea how I could achieve that a click on a specific UIIm...

Assigning a IBAction to the Back Button of the Navigation Bar (iPhone SDK)

In this (http://stackoverflow.com/questions/843534/flip-view-iphone) post, I have created a flip view for my iPhone app. Now, I want to make sure that whenever the user hits the 'Back' button in the navigation bar, the next time around when he drills down to the flippable view, this view is in its original, non-flipped position. Current...

Sqllite3 prepare insert query in iphone programming

NSString *event=@"max"; NSString *venue=@"tvm"; NSString *edate=@"may 6"; NSString *etime=@"10:30"; int admts=5; NSString *ima=ticobj.iimg; sqlite3 *database; databaseName = @"smbhDB.sql"; sqlite3_stmt *addStatement ; NSArray *documentPaths = NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES); NSString *doc...

iPhone Development and Testing on Jalibroken iPhone?

Other than the obvious ongoing legal issues surrounding jalibreaking the iPhone, does using an jailbroken phone for "official legal SDK development" cause any issues? Bascially can a jailbroken iPhone work fine for a production development environment, allowing the same provisioning, testing, etc as a stock iPhone in terms of the SDK a...

What mode to use to decrypt RSA message from iPhone in Java?

My friend has encrypted data with PKCS1 padding on an iPhone. How can I decrypt that data in Java? Java requires me to specify "algorithm/ciphermode/padding". The padding and the algorithm are known, but neither of us knows the cipher mode; it is not specified when encrypting on the iPhone. ...

How can I find automatically the coordinates of boundaries inside an PNG with transparency?

Imagine this: I have an PNG image that shows teddy bear, or a triangle. Something non-quadratic. Now, I want to find out, at which point for a given row and direction (coordinates relativ to the UIImageView's coordinate system) the actual visible image starts. Example: Lets say, I need to know where the feet of the teddy bear begins fro...