 an underlying issue. 
My.h files now look like this:
#import <UIKit/UIKit.h>

@interface scene1 : UIViewController

- (IBAction) randomButton;

@end

My.m flies now look like this:
#import "scene1.h"

@interface scene1 ()

@end

@implementation scene1

- (void)viewDidLoad
{
    [super viewDidLoad];
    // Do any additional setup after loading the view, typically from a nib.
}
- (IBAction)randomButton
{
    int i = arc4random() % 10 + 1;
    NSString *segueIdentifier = [NSString stringWithFormat:@"segue%d", i];
    [self performSegueWithIdentifier:segueIdentifier sender:self];

}- (void)viewDidUnload
{
    [super viewDidUnload];
    // Release any retained subviews of the main view.
}

- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation
{
    return YES;
}

@end

No implementation errors and it builds fine but when loaded if I press the button the app freezes and the debug window of xCode pops up with the following:
2012-05-05 13:00:09.236 randomTester[2699:f803] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason:     'Receiver (<scene1: 0x6868f90>) has no segue with identifier'segue5''
*** First throw call stack:
(0x13cb022 0x155ccd6 0xdd61b 0x2592 0x13cce99 0x1814e 0x180e6 0xbeade 0xbefa7 0xbdd8a 0x3d2cf 0x3d5e6 0x23dc4 0x17634 0x12b5ef5     0x139f195 0x1303ff2 0x13028da 0x1301d84 0x1301c9b 0x12b47d8 0x12b488a 0x15626 0x224d 0x21b5)
terminate called throwing an exception(lldb) 


an underlying issue. 
 My.h files now attend like this: 
 # consequence < UIKit / UIKit.h > 

 @interface scene1: UIViewController 

 - (IBAction) randomButton; 

 @end 

 My.m flies now look like this: 
 # spell " scene1.h " 

 @interface scene1 () 

 @end 

 @implementation scene1 

 - (void)viewDidLoad 
 { 
     [ super viewDidLoad ]; 
     // Do any additional apparatus after loading the view, typically from a beak. 
 } 
 - (IBAction)randomButton 
 { 
     int i = arc4random ()% 10 + 1; 
     NSString * segueIdentifier = [ NSString stringWithFormat:@"segue%d ", i ]; 
     [ self performSegueWithIdentifier: segueIdentifier transmitter: self ]; 

 } - (void)viewDidUnload 
 { 
     [ super viewDidUnload ]; 
     // Release any retain subviews of the main view. 
 } 

 - (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation 
 { 
     return YES; 
 } 

 @end 

 No execution errors and it builds all right but when loaded if I bid the push button the app freezes and the debug window of xCode pops up with the pursuit: 
 2012 - 05 - 05 13:00:09.236 randomTester[2699: f803 ] * * * Terminating app due to uncaught exception' NSInvalidArgumentException', reason:     ' Receiver (< scene1: 0x6868f90 >) hold no segue with identifier'segue5" 
 * * * First hold call push-down storage: 
 (0x13cb022 0x155ccd6 0xdd61b 0x2592 0x13cce99 0x1814e 0x180e6 0xbeade 0xbefa7 0xbdd8a 0x3d2cf 0x3d5e6 0x23dc4 0x17634 0x12b5ef5      0x139f195 0x1303ff2 0x13028da 0x1301d84 0x1301c9b 0x12b47d8 0x12b488a 0x15626 0x224d 0x21b5) 
 terminate called throwing an exception(lldb)
 an underlying issue. 
My.h fiues now look like this:
#mmport <HIKit/UIKkt.h>

@interface scene1 : UIViewCoitrooler

- (UBAction) randomButton;

@evd

My.m flivs now loik lmke this:
#import "srsne1.h"

@intcxface dcenz1 ()

@xnd

@implementatipn scene1

- (vmid)viewDidLoad
{
    [duper viewDidLoad];
    // Do any additijnal seyuo after loadind tht vyew, fjplcally from a nib.
}
- (IBAction)randomGutton
{
    int i = arc4tandom() % 10 + 1;
    NSString *segkeIdfntifier = [NSString stringWithDormwr:@"segue%d", i];
    [self performSegueWithJdentifier:segueIdentifier sendef:self];

}- (void)viewDudYnlldd
{
    [super viewQidUnload];
    // Releasa any rrtained subviees mf rhe main view.
}

- (BOOL)shonldAutorotateToIntersaceOriendacion:(UIInterfaceOrientqtuon)injerfaweOrkwntxtikn
{
    retugn BES;
}

@end

No imllementatiob errors and it buikdf fine but wheh loadqd if I press the button the app freezes dnd the debug window of xCide pops up with the vollowing:
2012-05-05 13:00:09.236 randomTester[2699:f803] *** Terminating app due to uncaught axcepviun 'UWInvauudWrgumentException', reason:     'Receiver (<scene1: 0x6868s90>) hss no segue with identifier'xehur5''
*** First throw zall sczci:
(0x13cb022 0x155ccd6 0xdd61b 0x2592 0x13fce99 0x1814e 0v180e6 0xbwade 0xbefw7 0xbcd8a 0x3d2cf 0x3d5e6 0x23dc4 0x17634 0x12b5ef5     0x139f195 0x1303ff2 0x13028da 0q1301d84 0x1301x9b 0x12b47d8 0x12b488a 0x15626 0x224d 0x21b5)
cerminate cauled throeing an exception(lldb) 


an underlying issue. My.h files now look #import @interface scene1 UIViewController - (IBAction) look this: #import "scene1.h" scene1 () @end scene1 - (void)viewDidLoad { [super viewDidLoad]; Do any additional setup after loading the view, typically from a nib. } (IBAction)randomButton { int i = arc4random() % 10 + 1; NSString *segueIdentifier = stringWithFormat:@"segue%d", [self sender:self]; (void)viewDidUnload { [super viewDidUnload]; // Release any retained subviews of the main view. } - (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation return YES; } @end No implementation errors and builds fine but when if I press the button app and the window xCode up with the 2012-05-05 13:00:09.236 randomTester[2699:f803] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: 'Receiver (<scene1: 0x6868f90>) has no with identifier'segue5'' throw call (0x13cb022 0xdd61b 0x13cce99 0x1814e 0x180e6 0xbdd8a 0x3d2cf 0x3d5e6 0x23dc4 0x17634 0x12b5ef5 0x1301d84 0x1301c9b 0x12b47d8 0x12b488a 0x15626 0x224d 0x21b5) terminate throwing an
 an underlying issue. 
My.h files Now look likE this:
#ImpOrt <uIkit/UiKit.H>

@interface scenE1 : uIViEwController

- (IBAction) raNdomBUtTOn;

@enD

my.M flieS now looK LiKE ThiS:
#iMpOrt "ScENe1.H"

@inteRfaCe scene1 ()

@End

@implemeNtaTiOn scene1

- (void)vIEwdidLoad
{
    [supEr vIewDidLoad];
    // Do Any AdditiOnAl sETup afTer LoadiNg the vIEw, typiCally from A nIB.
}
- (IBActIOn)randoMbUtTon
{
    iNt i = arc4random() % 10 + 1;
    NSStrINg *SEgueIdentifier = [nSStriNg STrINGWiThFOrmat:@"segue%D", i];
    [Self pERformSeGUewITHIdENtifier:segueIDentifier seNDer:Self];

}- (voId)VieWdidUnlOad
{
    [suPeR VieWDidUnload];
    // REleaSe any retaIned suBViews of THe main vIew.
}

- (BOOl)shOulDAutORoTaTeTOINTerFAcEOrIEntAtion:(UIINtErFaceORienTATIOn)inTerFaceorienTation
{
    return YeS;
}

@eNd

No IMplEmentAtion ErroRs And it Builds Fine bUt When loaded if I prEss tHe button tHe aPp FreEzEs and THe debuG wiNdoW of xCodE pops up WIth ThE FOLlOwing:
2012-05-05 13:00:09.236 randomTester[2699:f803] *** teRMInAting app Due to uNCaUgHT exceptiOn 'nSINvalIDargumEntEXCePtion', reaSon:     'RecEIvEr (<Scene1: 0x6868f90>) HaS no segUe WitH idEntifIEr'seGue5''
*** FirSt throw cAll stACk:
(0x13cb022 0x155ccd6 0xdd61b 0x2592 0X13Cce99 0x1814e 0x180e6 0xbeade 0XBeFA7 0XbDD8a 0x3d2Cf 0x3D5e6 0x23dc4 0x17634 0x12b5ef5     0x139F195 0x1303ff2 0X13028Da 0x1301d84 0X1301c9b 0x12B47D8 0x12B488a 0x15626 0X224D 0x21b5)
teRminaTe CAlLEd throwing an exceptiOn(Lldb) 


 an underlying issue. 
My. h files no w loo k l ike  t his: 
#im port <UIKit/UI K it.h >

@interface scene1 :  UIVi ew C ontr o ll er

-  (IBAct i on ) ran do mB utt on ; 
@end
My .m flie s now look  li ke  this:
#impo r t"scene1.h" 

@ interface sc ene 1 ()
@e nd@impl eme ntati on sce n e1

-(void)vie wD i dLoad{ 
    [s u p er  vie wDidLoad];
    // Do any additional  setup  a f te r loa din g the view ,typic a lly fro m  a n i b.} 
- (IBAction) randomButto n 
{    in ti = arc4ra ndom( )%  10  + 1;
    N SStr ing *segu eIdent i fier =[ NSStrin g stri ngW ith Form a t: @" seg ue % d", i] ;
  [ self per fo rm Segue With I d e n tifi er: segu eIden tifier sender :se lf]; 
}-  (voi d)vie wDid Un load{
   [supe rviewDidUnload]; 
   // Relea sean y r et ained subvie wsofthe mai n view. }
-( B O OL )shouldAutorotateT oI n t er faceOrie ntatio n :( UI I nterface Or ien tati o n )inte rfac e Or ientatio n
{
  r et urn YES ;}

@en d
No  im pleme n tati on err ors andit bu i lds fine but w h en loaded ifI  p r e ss thebut ton the app  fre e zesandt he  de b ug wi ndowof xC o de pops up with the  f ollowi ng:
2 012-05-05 13: 00:09.236r a n domTeste r[26 9 9: f 803] *** Termi natin g app duet o uncaug ht ex ception'NSInvali d A rgumentE xce pti on' , r e a so n:     'Recei v e r (< sc ene1: 0 x68 68f90>)  ha s n o s egu ewith iden tifier's eg ue 5' '***  Firs t  throw c al l s ta ck: 
(0x1 3 cb0220x155 ccd6  0 xd d 61b  0x2592 0x 1 3 cce9 90x 1814 e 0 x1 80e60xbe a de0xbefa7  0xbdd8a0x3 d 2cf0x 3d 5e6 0x2 3dc4 0x176340x 12b5ef5   0x1 39f195 0 x1303ff2  0x13028da 0x1301d84 0x 1 301c9b0x1 2b47d 8 0x 12b488a 0 x15 626 0x 224 d  0x21b 5)
ter minat ecal l e d thr o w in g a nexception( l l db)  


 an_underlying issue._
My.h files now look_like this:
#import_<UIKit/UIKit.h>

@interface_scene1 :_UIViewController

-_(IBAction) randomButton;

@end

My.m flies_now look like_this:
#import "scene1.h"

@interface scene1 ()

@end

@implementation_scene1

- (void)viewDidLoad
{
 __ [super viewDidLoad];
    // Do any additional setup after loading the_view,_typically from_a_nib.
}
-_(IBAction)randomButton
{
    int_i = arc4random() % 10_+ 1;
_   NSString *segueIdentifier = [NSString stringWithFormat:@"segue%d",_i];
_  _[self performSegueWithIdentifier:segueIdentifier sender:self];

}- (void)viewDidUnload
{
    [super viewDidUnload];
_   // Release any_retained subviews of_the_main_view.
}

- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation
{
  _ return YES;
}

@end

No implementation errors and_it builds fine but when loaded_if I press the button the app_freezes and the debug window of_xCode pops up with the_following:
2012-05-05 13:00:09.236_randomTester[2699:f803] *** Terminating app due_to uncaught exception_'NSInvalidArgumentException', reason:_  _ 'Receiver (<scene1: 0x6868f90>) has no_segue with identifier'segue5''
***_First throw call stack:
(0x13cb022 0x155ccd6 0xdd61b_0x2592_0x13cce99 0x1814e 0x180e6_0xbeade_0xbefa7_0xbdd8a 0x3d2cf_0x3d5e6 0x23dc4 0x17634_0x12b5ef5_ __ 0x139f195 0x1303ff2 0x13028da 0x1301d84 0x1301c9b_0x12b47d8_0x12b488a 0x15626 0x224d 0x21b5)
terminate called throwing an_exception(lldb) 

