Quantcast
Channel: Recent Threads — Xamarin Community Forums
Viewing all articles
Browse latest Browse all 204402

Adding a UIRefreshControl to a UITableView won't work in baseclass

$
0
0

Hello,

I'm new in the iOS World and Xamarin so I have a problem and I didn't know why I have the problem =)

So I developed before in WPF and I want to use the MVVM pattern in iOS.

The Problem is in Method "SetRefreshControlToTableView" in line "UIView view = refreshControl as UIView;"

When I copy the Code in the ViewController directly it works, but when i use the code in the BaseClass (RefreshableVC) I have an instance from the refreshControl and when I want to add it in the tableView, I get an null refrence exception "view is null".

So i Cast the refreshControl in UIView and its really null?! Why?

Thanks


Viewing all articles
Browse latest Browse all 204402

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>