Please, review my assignments - Network and Security

Hi All,

could someone review my two assignments, please?
Thank all in advance!

Someone could review my assignment, please?

Hi

I did it.

Giuseppe

Thanks a million, Giuseppe!

Hi.

Could you please review my classmate:

“Networking and Security in iOS Applications - Week 04 Secure Data Storage App”

Thanks

Giuseppe

Hi Giuseppe,

I’m almost done with my app. I’ll review yours afterwards.

I’m trying to build the counter label, but I have no idea how to do it. Would you please explain how you created that? It is not explained in the lectures.

Thanks.

Jonas

Hi Jonas.

Quite easy :wink: Just add this row in the function that updates the multi line label with the Core Data rows inside, after the FOR cycle:

self.dataCounter.text = [NSString stringWithFormat:@"%ld", (long)results.count];

That function is invoked in the viewDidLoad(), tapToDelete(), tapToAppend() functions, so it’s the perfect place to put this row, in order to keep the counter updated.
I’ve simply counted the length of the array (results) within core data strings (dataCounter is the counter label outlet).

-(void)updateLogList {
    NSManagedObjectContext *moc = self.appDelegate.managedObjectContext;
    NSFetchRequest *request = [NSFetchRequest fetchRequestWithEntityName:@"Chore"];
    NSError *error = nil;
    NSArray *results = [moc executeFetchRequest:request error:&error];
    if(!results){
        NSLog(@"Error fetching Person objects %@\n%@", [error localizedDescription], [error userInfo]);
        abort();
    }
    NSMutableString *buffer = [NSMutableString stringWithString:@""];
    for (ChoreMO *c in results)
    {
        [buffer appendFormat:@"%@\n", c.chore_name, nil];
    }
    self.persistedData.text = buffer;
    self.dataCounter.text = [NSString stringWithFormat:@"%ld", (long)results.count];
    }

Thanks in advance for your review.
Giuseppe

Thanks! Worked perfectly, but I guess you already knew that :slight_smile:

Hi guys,

What you mind reviewing my assignment. I had some problems, so I turned it in a bit late.

Thanks

Hi
Assigment reviewed

Could you please review the mine one as well ?

Thanks

Giuseppe

Yes of course :slight_smile: Could you post a link I can access it from?

Thanks a lot!
Giuseppe

Your welcome. But I’m still missing the link to your assigment, so can’t really access it…

I thought you reviewed my Classmate. Somebody else did it I guess.
Thanks again
Giuseppe

Giuseppe, I reviewed yours this morning… Would anyone like to review mine?

Here is the link -> https://www.coursera.org/learn/security/peer/msgK2/04-secure-data-storage-app/review/1lfDahTtEeevPg7X4ZMqyg

Thanks

Hi

I did it.
Bye
Giuseppe