ios - UIRefreshControl not showing indicator or title? -


Drag to refresh by using UITableViewController itemprop = "text">

UIRefreshControl . Even how far have I tried it?
  - (zero) viewDidoadload {.....////// ********* Drag to refresh ****** ***** * / UIRefreshControl * Refresh = [[UIRefreshControl alloc] init]; Refresh.attributedTitle = [[NSAttributedString alloc] initWithString: @ "pull to refresh"]; Refresh.tctColor = [UIColor magentaColor]; // [Add Self-Taille View AddSubwayview: Refresh]; // [Self. Refresh controller set enabled: Yes]; [Refresh addTarget: Self-Proceeding: @Sillector (Pulatourfaces :) Control Events: UI ControlAventWalls]; Self.refreshControl = Refresh; } - (Zero) Pulatourfaces: (Eurefreshus Control®) Refresh {[Fresh Start Arfreshing]; Refresh.attributedTitle = [[NSAttributedString alloc] initWithString: @ "Refreshing .."]; [Self loaded retent activity]; }   

But when I pull a table widget, neither the activity indicator or title appears, yet the pullToRefresh is called and the latest table. My app supports iOS7.0 + . What am I missing?

Edit: I'v tried the [self.refreshControl setEnabled: Yes]; and [self. Refresh power set enable: Yes]; As mentioned in my edited code, but there is still no luck, how does this happen when my refresh pulls me to refresh -  Enter image details here

Last solution: For table view background I

  UIImageView * ImageView = [[UIImageView alloc] was using initWithImage: [UIImage imageNamed: @ "background.png"]]; Self.tableView.backgroundView = imageView;   

Refresh pointer and title were hidden behind self.tableView.backgroundView [self.tableView setBackgroundColor: [ UIcolor Color Withpartan Image: [UIImage imageNamed: @ "background.png"]]];

And it resolves my problem too thanks to Balram Tiwari , if you still have a problem, then see her answer.

Actually you keep your refresh controller in table ridge, but it's behind the navigation bar. (Different, looks correct), this is the catch,

When you are using code in iOS 7, by default UIViewController ( edgesForExtendedLayout ) takes full screen means that (0,0) will start from the top left corner, under the navigation bar.

So your tableview is actually starting from there. So to get rid of it, you specify viewDidLoad for edgesForExtendedLayout for your viewController .

  If ((The answer to yourself is Tselectel: @Selector (expanded layout for edges)) self EdgesForExtendedLayout = UIRectEdgeNone;   

Then it should be visible.

  • First Fix:

    Right before

    • After fixes

      after fix

      Hopefully helps.

Comments

Popular posts from this blog

c - Mpirun hangs when mpi send and recieve is put in a loop -

python - Apply coupon to a customer's subscription based on non-stripe related actions on the site -

java - Unable to get JDBC connection in Spring application to MySQL -