Advertise here




Advertise here

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Sign In with Google Sign In with OpenID
Please do not post the same thing multiple times. The board software automatically flags certain posts as needing moderator attention. This happens the most often for new users. I'm pretty sure this is made clear at the time you attempt to post. Posting the same thing over and over again just makes that many more posts the moderators have to weed through later. This makes us sad. Don't make us sad. If your post/thread doesn't appear, just wait a while. Don't post it again. If it hasn't shown up by the next day, then you can try again. I normally go through posts in the mornings, and try to check a few times throughout the day, but I'm not here 24/7. There will typically be a significant delay before posts are approved. Just be patient.

How to make some quizes with Coredata??

I want make some quizes about movie.

There is quiz mutable array with 10 objects.
Using core data..entity is movie.
attributes are title, actor and correctcount.

There are two textfields,

Titlefield and actorfield.

I want to make two quizes from one object

First quiz which titlefield is hidden,
Second quiz which actorfield is hidden.

and user can type the movie title or actor name.
in textfields.

And if user type correct thing, i want to +1 correct count.

What i did is..

i put the quiz mutable array into these two arrays

Array A (quiz 1 to 10) <<for title quiz<br /> Array B (same as array A) <<for actor quiz<br />
And Movie *quizMovie

And..
after suffle these two arrays
Set enumerators to use nextObject method.

NSEnumerator *enu1 = [arrayA objectEnumerator];
NSEnumerator *enu2 = [arrayB objectEnumerator];

Set number =1 <<for quiz number.<br />
And UIButton to set quiz and start the quiz

If( number%2==1)
quizMovie = [enu1 nextObject]
Titlefield.hidden = YES;
else
quizMovie = [enu2 nextObject]
Actorfield.hidden = YES;

And when user tap the done button,
If correct, i want to +1 correctcount.

With these codes.. I can't get what i want...

Complecate..

Help me, Geniuses!!
Sign In or Register to comment.