Friday, 9 August 2013

Having problems with code inObjective C and Xcode

Having problems with code inObjective C and Xcode

i am very new to coding, especially in Objective C and would like to know
if you guys would help me ?
i am following a youtube video on how to make a basic dice roll iPhone
app, and i have encountered multiple errors with xCode and Objective C. i
was wondering if you could help me ?
the youtuber i am following is called codingwithchris.
in this part of the code http://pastebin.com/SLYZ74mR i am having errors
with these small sections
{
if (self.dieImage ** nil)
{
and
self.dieImage = ([[UIImageView alloc] intWithFrame: CGRectMake(0, 0, 90,
90)]);
in the firt part of the code "if (self.dieImage ** nil)" the error says
"Invalid operands to binary expression ('UIImageView *' and 'void')"
and with the second part of the code
"self.dieImage = ([[UIImageView alloc] intWithFrame: CGRectMake(0, 0, 90,
90)]);"
the error says "No visible @interface for 'UIImageView' declares the
selector 'intWithFrame:'
Now also with my other file of code it has another couple of errors...
http://pastebin.com/WeYAEkdA
the errors in the code are here
self.model = ([DiceDataController alloc] init);
ERROR SAYS: Expected ')'
and here
int roll = (model getDiceRoll);
ERROR SAYS: Use of undeclared identifier 'model' This error about the word
"model" it wants to autocorrect itself to the word "modfl" and i have no
idea why ?
hope to hear from you guys soon :)
email me at robotboy321@hotmail.com or reply to this thread :)
~Daiel Formosa

No comments:

Post a Comment