Circular Dependency of Navigation Control in iPhone
- by Taimur Hamza
Hi everyone ,
In my view this is one of the strangest problem i have ever come across in iPhone app development.
Let me explain the scenario , i have main screen 'A' on which i have a Button that directs me to another Screen say 'B'. Now on Screen 'B' i have a feature in which user can send a mail to his friend for promotion purpose e.g a user wishes to tell a frnd about this app so i used MFMailComposeViewController and a view is generated where the user types the address and click send
( subject and body of mail is automatically generated ). After sending the mail a new view opens say screen 'C' and here i want to give the user the options .
1. Go to Screen 'A' ( which is main screen of the app )
2. Go back to Screen 'B' ( from where the user requested to send a mail to his frnd ).
Now the strange part i cannot declare the variables ( Screen 'A' and 'B' ) of both these files here at in header file of screen 'C' . Even when i declare the header file at the top it generates an error. The variables can be easily be declared and used for other screens but not for these 2 screens. Can anybody please explain wats the problem.?
this the text of the error
"/Users/admin/Documents/AppName/Classes/A.h:42: error: expected specifier-qualifier-list before 'B'"
Thanks Guys !
Taimur