iphone

Cocos2d CCLabel update problem for scores

I am using two calls setScore which is going in the init method and UpdateScore when an object is destroyed. When I run the program, I get a crash as soon as UpdateScore is called. Anyone see errors with my code? Thank you very much. In my .h file I have CCLabel *score; and NSString *text; declared for global use. -(void)setScore{ sc...

Xcode: iPod Touch Simulator?

Hi, I'd like to test my app on the ipod touch. But in Xcode I don't see a simulator for this (I only see a simulator for iphone 3gs, iphone 4, and ipad). Do you know if there's a way to run an ipod touch simulator? ...

Application crashes after trying to set typedef enum

Hello there! I had asked a question similar to this before, but I have a new problem with it so I've reposted part of the question. I have this before the interface declaration in my MainView.h header. typedef enum { UNKNOWN, CLEAR, NIGHT_CLEAR, CLOUDY, NIGHT_CLOUDY } Weather; Then I declared it (in my MainView) like this: Weather...

Does anyone have any solutions for playing an ASF stream in an iPhone app?

As a part of my app I'm building, I'm trying to add a radio feed, and the radio station in question only supplies an asx/asf stream and has no plans to support anything else, so I have no access to change any of the source stream. Obviously, reading an ASF stream using the default libraries does not work, as the iPhone does not support ...

Using KVC to find the maximum value in an NSSet

Hi all. I'm trying to find the maximum value in the order property in this coredata object: #import <Foundation/Foundation.h> #import "Story.h" @class Story; @interface Sentence : NSManagedObject { } @property (nonatomic, retain) NSString *text; @property (nonatomic, retain) NSString *image; @property (nonatomic, re...

How to get UIButtons title in an array to be shown each one by one in a timed sequence

In my program, I have a series of UIButtons in an array that I would like its title to be shown each one at a time one by one in a timed sequence after executing a function that has a while loop. I have an IBAction attached to the buttons and when touched will call another function that will do some operation and in the end, will chang...

How to play infinitely overlapping sounds?

Hi, I have a button that triggers a sound on an iphone. I am using AudioUnits to minimize the latency. Right now, if the user taps the button twice, the sound do not overlap and the first triggered sound is cut by the second sound. Is there an easy way to let the (same) sound overlapping as many times as the user taps the buttons? Tha...

NEED HELP,Objective C strange parameter

Hi All: I am a Iphone freshMan today a wired parameter confused me, - (UIBackgroundTaskIdentifier)beginBackgroundTaskWithExpirationHandler:(void(^)(void))handler /* ... */ bgTask = [application beginBackgroundTaskWithExpirationHandler: ^{ dispatch_async(dispatch_get_main_queue(), ^{ [application endBackgroundTask:self->bg...

How to make the matrix caculating faster?

Hello guys: I have to project many points before drawing them on a frame. my codes are blow: -(Coordination*)xyWorldToDev:(Coordination*)pt isIphoneYAxis:(BOOL)isIphoneYAxis{ CGPoint tmpPoint=CGPointApplyAffineTransform(CGPointMake(pt.x,pt.y),worldToDevMatrix); Coordination *resultPoint=[[[Coordination alloc]initWithXY:tmpPoint....

Does iPhone support per pixel alpha?

I am finding a way to draw image with per pixel alpha using UIView on iphone, any one have tried that? ...

Make superlayer not visible

I have added sublayers to my UIView's layer. However, the root layer(UIView's layer) is visible at background as white rectangle. How can I effeciently hide superlayer so there will be no resourses spent on compositing with sublayers? ...

How to choose provisional profile for the iphone application when you build your application for device

Please tell me what is the process of the provisional profile choose in our application when we create device build ...

how to underline UILabel text - iPhone App

Hi... I want to underline the UIlabel text as hyperlink UILabel *myLabel = [[UILabel alloc] initWithFrame:CGRectMake(20.0, 220.0, 160.0, 30.0)]; myLabel.text = @"click here"; how can i make the above string to be underlined.. Thanks for any help ...

Does calling a protocol method pass program flow control?

I know this is quite possibly a lame question, but I've pulled three consecutive all-nighters and I'm very blurry. And I'm new to Objective C and Cocoa Touch. I've created a class that provides a delegate method. I'll use simplified example code since the specifics aren't important. The header file looks like this: #import <Foundation/...

sqlite foreign key in iphone sdk

hai guys, i am planning to create a table view and the detail view for the corresponding row, all the datas are fetch from the sqlite database. For this i have created two tables in the database table one for the datas in the table view list and table two for the detail view of the table list. i set the product id as the primary...

How to embed a Youtube video and Podcasts into an iphone app.

I have an app which requires the Youtube videos and Audio Podcasts to be played inside my app and not giving out control to youtube player or safari. What is the method that can be used to embed Youtube videos and Audio Podcasts into my iphone app? Any tutorials about the above issue are most desirable as I am new into this. Please gi...

Download button in app

Has anyone seen iPad greeting cards app... what they have done is released the app with some limited greeting cards and now user can download the other cards from web by paying some amt.... I want to implement such functionality .. has anyone any idead about that.. I know that can be implemented by taking image from url recieved data and...

Siphon project is not compiling for video conferencing technology.

Hi, I want to complile siphon for video conferencing. I have followed the steps to compile in the link. http://www.blogtopsites.com/outpost/db6f49d045913a34797c4d0c87a253d4. Even I followed the process,it is not compiling on my iPhone simulator 4.0 ...

How to found the problem of crash log in Iphone

Hello All, I am new one to develop iphone App. so help me to found out error in crash log. In crash log contains only library or framework. Help me to found out crash line .Thanks in advance. Regards, Arunkumar.P ...

Is it possible to do a ranked full text search of a database on an iPhone?

I have an iPhone app that will store data in a database. The data is basically locations, activities you can do at those locations and text about the activities. eg In Florida you can scuba dive at these locations and here's some info on scuba diving in Coral Key. The user drills into the application to get to the information: Florida...