While writing an iPad app, I find it very difficult to run in errors; In fact, I have a parent class "ticker" To see if stock ticker data is cached and if not, then this network creates an example of IT data, passes itself as an argument, and the returned data connects itself.
[Ticker Milladata]
is the code for: - (zero) getData {// Here look what data locally // has not been cached if not NetworkTickerData * tick = [[NetworkTickerData alloc] initWithTicker: Self]; [Receive TacticTeaTercardia]; Self.tickerData = Tick TickerData; } Code for and [NetworkTickerData initWithTicker]
:
+ (NetworkTickerData *) initWithTicker: (ticker *) Tick {Nslog (@ "fixing"); NetworkTickerData * t = [[NetworktechartAloc] init]; T.ticker = Tick; T.net = [[Network op alloc] init]; Return T; }
I'm getting the error: *** - [NetworkTyroid Data with Ticker:]: Unknown sent to the selector for example
< P> Is there a problem with passing a variable manually
to initWithTicker
? For its value, NSLog
, for the purpose of debug only, never prints. If I think, then the problem should be with the self
, maybe it does not show the current class?
initWith ...
Methods are example methods, not class methods. + (NetworkTickerData *) initWithTicker: (Ticker *) Tick
to
- (NetworkTickerData *) InitWithTicker : (Ticker *) Tick
Note that +
turns into a -
.
Comments
Post a Comment