I have an app which has to load some data at startup, so I want to display a splash-screen animation.
I'm using the MPMoviePlayerController to play a m4v file.
The movie has it's background set to [UIColor clearColor].
Default.png is the movies first frame, and also the initial views background image (as a UIImageView).
To loop the mov...
After spending three weeks learning Objective-C and Cocoa programming for my work, I've been tasked with researching alternatives to it for iPhone development.
I know of two existing alternatives, and one future possibility.
C#
MonoTouch is a C#.NET implementation with bindings for iPhone specific functionality such as touch screen a...
Actually, almost exactly the same thing. A matrix of small views that would expand out when you click on them. I don't know if it makes more sense to take a snapshot of the view as an image and work with that, or if there is a way to keep the views "live". Thoughts on either approach are welcome!
...
So, I'm trying to programmatically attach event handlers to widgets I've placed on my iphone application using:
addTarget:action:forControlEvents
I have added a UISegmentedControl in Interface Builder which is exposed through @property seg and in loadView, I have:
- (void)loadView
{
[ super loadView ] ;
//k after that attach o...
In XCode and objective c, if I want to use a UIGlassButton in interface builder, I put the following line in my header file:
@class UIGlassButton;
I am now using monotouch c#. Is there a similar statement I can use to import the UIGlassButton class?
I guess the question becomes did the Monotouch team port UIGlassButton to C# and Mon...
I'm trying to register my custom UTI for document-based app. It seems ok, because a get correct type in -initWithType:error: method and in -dataOfType:error:. BUT my app fails to open the newly created files.
The UTI is similar to this, notice the four components used:
ru.mycompany.myapp.myformat
I thought it is possible to create fo...
In objective-c you see
[object retain] ;
What does sending a retain message to an object mean and why would you use one?
...
Here is my scenario:
I am building a location finder using the iPhone mapkit. I have an array stored in the application delegate to hold the information about the location of a store (name, address, etc.). When a certain button is pressed, a view slides in with a textfield and a button which performs a lookup of the users input, and ret...
I've noticed that there are two different ways to load nib files: 1) via the UIView's initWithNibName:bundle: method and 2) NSBundle's loadNibNamed:owner:options: method. Can someone explain the differences between these two and when it is more appropriate to use one over the other and in what circumstances?
For instance, if I'm loading...
I've come across a strange render bug on iPhone OS 3.0...
I have two images. One is a non-transparent PNG that is predominately black with a white gradient fading upward.
The second is a transparent PNG with translucent clouds.
When I overlay the two using UIImageView, the intersection of the clouds and white gradient triggers a rende...
I've read a lot about NSDecimal, NSNumber, NSNumberDecimal, CFNumber... and it begins to be a kind of jungle to me.
Basically, I'm trying to create a simple model class that will handle simple computations, like this one:
#import <Foundation/Foundation.h>
@interface Test : NSObject
{
float rate;
float amount;
int duration...
I would like to bring up the Camera in my app, and let the user take a photo by pressing the hardware volume buttons on the phone.
Is this possible? Can I trigger a function when the users changes the volume, and can I then programatically trigger the camera in this function?
A link or code snippet would be much appreciated.
...
Hey,
I'm messing around with NSNumber for an iPhone app, and seeing what I can do with it. For most of my variables, I simple store them as "int" or "float" or whatnot. However, when I have to pass an object (Such as in a Dictionary) then I need them as an Object. I use NSNUmber. This is how I initialize the object.
NSNumber *testN...
Hi, I am exporting a date value from sqlite and placing it into an email. The date appears like this
279498721.322872
I am using Objective C in an Iphone App. Does anyone know how to make this export out as a regular date whether it is all number like
2009-02-10 or anything legible?
...
As I understand, in Objective-C you can only put Objects into dictionaries. So if I was to create a dictionary, it would have to have all objects. This means I need to put my ints in as NSNumber, right?
SOo...
NSNumber *testNum = [NSNumber numberWithInt:varMoney];
NSMutableDictionary *dictionary = [[NSMutableDictionary alloc] i...
I find NSLog() statements really hard to read because of the verbose date.
Is there a way to suppress the date on NSLog?
...
Every time try to set the value of any variable in my model object, I receive 'Unrecognized selector sent to instance' error, and the app crashes. The ivars have been synthesized and they are not readonly. I have checked to see the values set are of the right type.
I am not sure if it has to do with some connection in IB, which I have c...
I'm trying to implement a design as follows:
Touch class : acts as an interface, several classes inherit from it
MoveTouch class inherits
JumpTouch class inherits
InterfaceTouch class inherits
Then I want to have a list of Touch objects. I then want to be able to strip out all the MoveTouch objects ONLY (not the other ones), and then ...
Is there a way to find out what all softwares are installed / present in OS x, programmatically using objective C. any help will be appreciated. Thanks in advance
...
I have a question would like ask anyone expert in objective C and iPhone Dev.
I have a page used to add stuff to other page. Such as a have a page called artist. Open it will see artist history . Clicking it will lead to other pages carry the according contents. Inside each content has a button called add to favorite. Okey, now if the a...