I have dates that are being stored in a database by core data. I then am using php to print out this date information but the date is coming out wrong.
When I store Aug 2, 2009 in core data it comes out in the php as Fri, August 4, 1978. How do I fix the conversion?
...
If one ship is moving toward another and fires on it, how do I animate that explosion while having the firing ship keep moving? Using something such as cocos2d in a 2D game. Any online references are appreciated.
Also, does anyone have a reference to the crashlanding game that use to be on the Apple developer site?
...
Hi all,
Something I've been concerned about for a while as I'm developing my applications is the oft hard coded geometry of images and view components that take for granted the 320x480 nature of the current display generations.
I've seen many answers in StackOverflow and in examples / tutorials that hard code in the screen dimensions. ...
Suppose I have two fingers touching iPhone's screen but just one is moving.
TouchesMoved will just show one finger (event).
How do I know which of the two fingers TouchesMoved is referring too?
...
Hi,
Is there an easy way to implement an image preview, that is available in the iPhone photos application? I'm talking about the white screen that has many small images and when we click on them, the image becomes full screen.
Thank you in advance.
...
Hello all,
I want to call a webservice from an iPhone application.
How to create a proxy for a webservice, as visual studio does it for us.
Also Is there any other way around to access the SOAP XML webservice.
...
My application is running some internal audio short files, per need. When that happens and if iPod music is on in the background, I stop it, play my sound, then continue it. all using [MPMediaMusicController iPodMusicPlayer].
Now, I want to add the ability to pick and play iPod music from inside my app. Currently, picking of the iPod mu...
Hello,
I haven't figured out that yet: I have a mainViewController that switches two views, viewControllerA and ViewControllerB. The way I switch the view is by having a UIButton (mainButton) in the mainViewController, and clicking on it switches viewControllerA <--> ViewControllerB.
Now here is my problem. My ViewControllerA has a UIB...
I'm aware that there are several Cocoa Touch/iPhone calendar implementations available online, but for certain reasons I'm trying to create my own. I'm running into an issue where the code that I use to lay out the dates (which I represent as instances of UIView placed as subviews into another UIView) is messing up in December.
Currentl...
I found some blurring code at http://incubator.quasimondo.com/processing/stackblur.pde. Any ideas how to feed it, and get back, a UIImage or CGImageRef or something usable on the iPhone?
I'm not sure what format their BImage file is (Bitmap?) and what corresponds to it in Cocoa Touch.
Thanks.
...
In my Core Data Model i've got an entity that has a date attribute and as the title suggests, i'd like to group this entity by (week)days.
The problem is, the dates are stored more or less as timestamps and i don't know how to create a predicate that is capable of grouping/filtering my entities approprioately.
I've figured out that i w...
i.e. I have a layer's "transform.rotation.z" value which may change several times. Every time that value changes, I'd like to call a method. Of course I could call it just at any point where I touch that value. But maybe there's a more elegant way in objective-c / cocoa-touch? Somebody told me a few days ago that there's some notificatio...
How is text in a database localized for the iPhone? The examples I've seen have hard coded strings in the .m file or .xib. For example:
NSString firstName = NSLocalizedString(@"First Name", @"This is the first name");
What happens if the strings you need to localize are in the database? I haven't found discussion of this type of lo...
I can access the value like this:
NSNumber* rotationZ = [myLayer valueForKeyPath:@"transform.rotation.z"];
But for some reason, if I try to KV-observe that key path, I get a compiler error. First, this is how I try to do it:
[myLayer addObserver:self forKeyPath:@"transform.rotation.z" options:0 context:nil];
The compiler tells me:
...
I'm starting an app where I'd like to have multiple view controllers. Some of the views will be displayed inside of a navigation controller. I can create a navigation controller and then add another instantiated view controller to it. But what I'd like to do, is just instantiate a view controller that has its own view and is the root ...
I am implementing a class that has to store arbitrary objects together with a string. i.e.
myUIViewObject, @"that's a nice view"
myUIViewController, @"not really special"
myOtherObject, @"very important one"
this list can be extended and modified at any time, so I thought about using NSMutableDictionary here. But I am not really sure....
I am not sure if the memory address of an object keeps beeing the same over its lifetime. Does it? Or does it change sometimes during the object's existence?
...
I need to store the memory address of an Object as an NSString. Is there a special format specifier for that?
...
Hi,
I've got a view of size 320x480 and in it an UIScrollView that takes all the place in my view.
The scroll view can scroll only in horizontal direction and I want to implement my own method for handling vertical swipes.
UIScrollView seems not to respond to touchesBegan and to touchesMoved.
What is the solution to my problem?
How ...
I've subclassed UIActionSheet, and in the -init method, I have to add the buttons individually after calling the super init (can't pass a var_args).
Right now, it looks like this:
if (self = [super initWithTitle:title delegate:self cancelButtonTitle:cancel destructiveButtonTile:destroy otherButtonTitles:firstButton,nil]) {
if (firstB...