Replace some deprecated api in old iOS version.
Fix BarCharView doesn't update