letsfae / FaeMap-Frontend

2 stars 0 forks source link

Chat: InputToolBar frequently loaded will make mapView very slow with dragging #3

Closed joshuayueshen closed 7 years ago

joshuayueshen commented 7 years ago

@jjdddn1 Issue Detail: Two viewController are currently using InputToolBar, one is Chat, one is CommentPinDetail. When I frequently tapped at comment marker and then dismissed it, maybe after 5 times, the mapView dragging became very very slow. Some things happened in Chat. But, after I disabled the loading of InputToolBar, everything goes fine.

Probable Solution (Just some thoughts):

  1. Do memory clear for InputToolBar after dismissing the viewController that uses InputToolBar
  2. Don't load the pictures in InputToolBar, which consumes too much memory and loading time.
  3. Add disable switch for turning on the functions of FAEInputToolBar.
jjdddn1 commented 7 years ago

Fixed, check dev_swift3 and see if it's still happening.