Your "Visit" entity should have a (to-one) relationship "user" to the "User" entity. Then you can simply execute a fetch request on the "Visit" entity with the predicate
[NSPredicate predicateWithFormat:@"user = %@", selectedUser]
Consider also to use a NSFetchedResultsController
which is convenient to populate a table view.