Ayrad
Ayrad

Reputation: 4056

Updating a custom view drawing each time data is modified

My goal is to update a UIView's drawing from a seperate view controller (in a different tab) so I created an outlet for it:

@property (strong,nonatomic) IBOutlet GraphView *graphview; (and synthesized it).

However I cannot connect this outlet to the view I want to access in storyboard. I tried control dragging from the DataController.h file to the the view in storyboard and the other way around and it's not setting.

EDIT

clarifying my main goal that in my tab bar application, I need to access a view inside a scrolview in TAB2 from a view controller inside Tab1 in order to update everytime I add a value to the core data context.

Upvotes: 0

Views: 164

Answers (1)

Hubert Kunnemeyer
Hubert Kunnemeyer

Reputation: 2261

IBOutlets are Interface Builder Outlets, They are only for objects that are in the view associated with that particular viewController. What exactly are you trying to update?

Upvotes: 1

Related Questions