Try the following~

UIAlertView *myAlertView = [[UIAlertView alloc] initWithTitle:@"Title" message:message delegate:self cancelButtonTitle:@"Cancel" otherButtonTitles:@"OK", nil];
 

- (void)alertView:(UIAlertView *)actionSheet clickedButtonAtIndex:(NSInteger)buttonIndex {


    if (buttonIndex == 0)   //NO

    {

        

    }

    else    //OK

    {

        

    }

}




That's all~


신고
Posted by ParkPill 박필

I was gonna post it tomorrow but i decided to post it right now. why?

cause i dont have anything to do right now :p

Get to the point!

#import "CLScoreServerPost.h"


-(void) requestGlobalScore

{


    CLScoreServerRequest *request = [[CLScoreServerRequest alloc] initWithGameName:@"Mayday Timeattack" delegate:self];

  

    

    [request requestScores:kQueryAllTime limit:10 offset:currentScore flags:kQueryFlagIgnore];


    [request release];

}

 

-(void) scoreRequestOk: (id) sender

{

    NSArray *scores = [sender parseScores]; 

    NSMutableArray * serverScore = [NSMutableArray arrayWithArray:scores];

}
 
 


Try the above lines then you will be find. 

If you have any questions, reply~




신고
Posted by ParkPill 박필

You can't use NSMutableArray with CGPoint.

In other language we can just use " List<Template> ".

But in objective-c we use like this.

NSMutableArray * pointArray = [NSMutableArray array];

        
[pointArray addObject:[NSValue valueWithCGPoint:location]];

[pointArray addObject:[NSValue valueWithCGPoint:lastPoint]];

        

CGPoint retrievedPoint = [[pointArray objectAtIndex:0CGPointValue];

 
Turns out, we can only use NSMutableArray with a class or something that can make a instance with it.

So now you got a solution.

Have a good time~ 
신고
Posted by ParkPill 박필
nonatomic;; 

That is the one that makes problem.

when you read and write with NSMutableArray, you should use them as a property.

How to do that?

Try the following line.

@property (nonatomic, retain) NSMutableArray *dotArray;

 
That's all.
신고
Posted by ParkPill 박필
Straight to the point!

Go the following site

http://zwoptexapp.com/flashversion


1. File - Import Images 
2. Arrange - By Name & Height
3. File - Export Coordinates

That is all.

Pretty easy, huh?

Have a good day~
신고
Posted by ParkPill 박필

In other language we use the following.

CGPoint a, b;
if(a == b)
 
 
But in the objective c manner it is like this.

CGPoint location;
CGPoint lastPoint; 


if (CGPointEqualToPoint(location, lastPoint)) {


    }

 
pretty straight forward.

Have a good day. 
신고
Posted by ParkPill 박필


티스토리 툴바