My comment as an answer:
It could be because activityView
becomes nil at some point before a call to hideActivityViewer
. Lets say u call showActivityViewer
two times consecutively, you have two activityViews
exactly on top of each other and the first one will never be hidden if you call hideActivityViewer
. Even after matching number of hideActivityViewer
calls, or more.