iphone

Can custom transforms be used (in theory) to create a water ripple effect on a CALayer?

It's possible to create custom transform matrices. But I wonder if they are suited for making water ripple effects on a CALAyer. Think of 20 of them in an animation. Can someone tell? ...

Are there any tutorials out there on creating custom transform matrices for iPhone OS?

I want to jump in that stuff. Some good tutorials would be cool! ...

@properties question on iPhone development

From what I've read, @properties and @synthesize are used to tell the compiler to to generate getters and setters for various properties of our class. So I am confused when I see the source code of an Apple example, the GKTank, that uses only one class for the whole game (apart from the app delegate) and still most of the attributes of ...

Creating multiple class instances on the fly

My question involves a simple game that 2-4 people can play. This is a game that is played on one iphone/ipod touch so no networking is required. When the game is started, the user will select the number of players that will play. For each player I need to create and instance of the Player class. My question is how do I code so that on...

iPhone app crashes after downloading an update

We just released our first iPhone app update, and a few users have complained that--after installing the update--the app crashes right after launching. Apparently, rebooting the phone solves the problem. The only change we made to the AppDelegate was the addition of the Pinch Media Analytics library, which doesn't seem to be the culprit...

Favorite way to synchronize sqlite3 db on iPhone over HTTP

I currently have an sqlite3 database in my iPhone application. The database has grown to 10MB+ on its own with all of the data I've thrown at it so far. Some of the data I'd rather not have part of the App Bundle as well. If I provide just the schema, what's your favorite way of syncing all of the tables over HTTP? ...

A/Synchronous NSURLConnection: get response without download data?

Hi! Help is highly appreciated. I'm stuck here: I need to examine a response before I start loading an URL in my UIWebView. However a synchronous NSURLConnection will first download the data and then let me access the response, which is bad. An asynchronous NSURLConnection will let me examine the response before any data is received bu...

Number of days in the current month using iPhone SDK?

A fairly straight forward question, I am trying to figure out how I can get the current number of days in the current month using NSDate or something similar in Cocoa touch. Thanks. ...

Is this plan for preventing iPhone app client spoofing sound?

I'm designing an iPhone app that communicates with a server over HTTP. I only want the app, not arbitrary HTTP clients, to be able to POST to certain URL's on the server. So I'll set up the server to only validate POSTs that include a secret token, and set up the app to include that secret token. All requests that include this token wil...

Why is my CLLocation speed so inaccurate?

Hello, I´m playing a bit with the iPhone SDK and I want to show the current speed in my Application. There are so many Apps that can do that really precise, espacially for low Speeds like running or biking. The Best I´ve seen is RunKeeper. But in my Application the Speed is absolutely inaccurate. In Low Speeds is always null and only a...

Can I set my iPhone app to run when a user opens an e-mail attachment?

Is there any way to run my app when the user taps on an e-mail attachment, so I can access the attached file? What I want to do is implement some kind of backup / restore for app data: The user sends an e-mail with an attached data file that has a special extension (I will be using the new iPhone 3.0 message composer class) If the use...

Where should I keep Core Data fetches and convenience methods?

I've got a number of convenience methods that perform fetches for my Core Data entities. For example, a method that returns currently-active activities, or a time interval between two completed activities, or a default client if there is one. I also have convenience methods to initialize and add entities with various attributes. I have ...

iphone - hiding UITabBar without presentModalViewController or pushViewController

Hey guys, like the question states, I am trying to slide in a UIDatePicker without using presentModalViewController or pushViewController and subsequently hide the main UITabBar of the application. Right now, I am adding the UIDatePicker subview with a couple buttons on a Navigation Bar to a temporary UIViewController, and initializing a...

Will sending -removeAllAnimations to a layer also propagate to all it's sublayers?

I wonder if sublayer animations would continue to play if I send -removeAllAnimations to a parent layer. ...

How can I alter the values of an transform?

For example, I can access them like this: self.layer.transform.m32 but I can't assign a value to it, like self.layer.transform.m32 = 0.3f; it says invalid assignment. But shouldn't that actually work? struct CATransform3D { CGFloat m11, m12, m13, m14; CGFloat m21, m22, m23, m24; CGFloat m31, m32, m33, m34; CGFloat m...

Up/down arrows in nav bar of detail view to page through objects in parent table.

I have created an up/down arrow segmented control button on the right side of the navigation bar in my detail view. In a table based application, how can I use these up/down arrows to move through cells in the parent table? The apple "NavBar" sample code has an example of this but the controls are not functional. The iBird program has...

How to detect when a CATiledLayer has finished drawing all tiles

I need to detect when a CATiledLayer has finished drawing. I tried subclassing and overriding -(void)display to set/clear a flag, but it seems that tile drawing is happening in a different thread (display just returns and then seconds later, the layer is finished drawing) ...

iPhone Custom UITableViewCell with image after scroll

In my app UItableView with custom cells, cells with image, but in some cells has not image. In start the place without image is white. After scrolling table in that places appears others picture. Please help to fix this problem. ...

[Objective C] Object sharing in my iPhone App

Hi, I'm currently developping my first iPhone application and I would like to know what is the best way to share an object which is gonna be used in every controller. I was thinking of referencing the controller containing the needed data in other controllers and access this data thanks to properties, is that a good idea or is there a ...

More than 1 button on the left side of a NavigationBar

Is it possible? I have a UINavigationBar that I'd like to have an 'edit' button next to the 'back' button. From what I've read you can only have one or the other, which makes no sense as they are separate properties of the navigationItem object(backBarButtonItem and leftBarButtonItem). I'm assuming you have to somehow insert a custom U...