objective c - Need to scroll to visible the image in table cell in ios -


I have created an application to view some data using a URL. I used asynctask to stop the main thread block, but after the page is loaded, I need to view and scroll my images but it does not display every image here My code is

ViewDidload method

  - (zero) viewDidoadload {[Super Viewedload]; Self.tableView.dataSource = self; Self.tableView.delegate = self; _myObject = [[NSMutableArray alloc] init]; NSData * jsonSource = [NSData dataWithContentsOfURL: [NSURL URLWithString: url]]; Id jsonObjects = [NSJSONArilationJSONObjectWithData: jsonSource option: NSJS reading; RemoteContributor error: zero]; NSArray * DataDek = [JasonObjects ObjectForcae: @ "Data"]; (Attorney * l = [[attorney alok] init]; USINCRAR (qi, data); transmissions_acific (sending_jet_man_qu), ^ {l.uiImage = image;});}; [_myObject addObject: [L initFromDictionary: dicData]]; }}    IndexPath {static NSString * CellIdentifier = @ "SettingsCell"; UITableViewCell * cell = [tableview] dequeueReusableCellWithIdentifier: CellIdentifier]; If (cell == blue) {cell = [[UITABEL power ALL] INST WITH STYLE: UTTABLE VISASEL STYLSBASHEETELETIFIER: SAIL identifier]; } Lawyer * l = [[lawyer aloch] init]; L = [_myObject ObjectAut Index: IndexPath.ro]; Cell.textLabel.text = [NSString stringWithFormat: @ "% @" "% @", l.firstName, l.lastName]; Cell.detailTextLabel.text = l.state; Cell.imageView.image = l.uiImage; Return cell; }  

How do I fix this?

Keep in mind that you are using asynchronous code, and your The sequence of rows appearing in the editor is not required, in which order it will be executed.

Sometimes, the image is set after [_ myObject] on l AddObject: [L init ...]] said For the second time, it gets set before that line.

You can use l once in a [[attorney alloc] init] and second time using the initFromDictionary: . Do not put it twice

In your cellphoneAutWindex XPath: also, you're using l twice, do not do that.

I do not think about the things you are clear about and the examples, clear your basics.


Comments

Popular posts from this blog

java - org.apache.http.ProtocolException: Target host is not specified -

java - Gradle dependencies: compile project by relative path -

ruby on rails - Object doesn't support #inspect when used with .include -