Search Results

Search found 4 results on 1 pages for 'westla7'.

Page 1/1 | 1 

  • IPHONE: For UITableView -- changing to next view takes time, how to show UIActivityIndicatorView?

    - by westla7
    So, my UITableViewCell has UITableViewCellAccessoryDetailDisclosureButton, and when somebody clicks on it it make long time just to show next view screen... so I want to show some "rolling wait image" (UIActivityIndicatorView ?) say next to UITableViewCellAccessoryDetailDisclosureButton in this cell, but how do I do it right? How to use UITableViewCellAccessoryDetailDisclosureButton properly? Thank you.

    Read the article

  • Java: any problems/negative sides of keeping SoftReference to ArrayList in HttpSession?

    - by westla7
    My code is doing the following (just as an example, and the reason that I specify package path to java.lang.ref.SoftReference is to note that it's not my own implementaiton :-): ... List<String> someData = new ArrayList<String>(); someData.add("Value1"); someData.add("Value2"); ... java.lang.ref.SoftReference softRef = new SoftReference(someData); ... HttpSession session = request.getSession(true); session.setAttribute("mySoftRefData", softRef); ... and later: ... java.lang.ref.SoftReference softRef = session.getAttribute("mySoftRefData"); if (softRef != null && softRef.get() != null) { List<String> someData = (List<String>)softRef.get(); // do something with it. } ... Any disadvantages? Which I do not see? Thank you!

    Read the article

1