0

is there any way to ignore touch event before fmdb complete it's database sequence

for instance, i do a database pulling so i dont want user to tap on the screen before the database process completed

i've tried using

[[UIApplication sharedApplication] beginIgnoringInteractionEvents];

[databaseHandler saveAllData];

[[UIApplication sharedApplication]endIgnoringInteractionEvents];

but it doesn't work

thanks

rmaddy
  • 314,917
  • 42
  • 532
  • 579
Yonathan Jm
  • 442
  • 3
  • 12
  • use UIActivityIndicatorView while you fetching data. – freelancer Feb 06 '14 at 12:24
  • You might try SVProgressHUD, that can gray out the screen and also inform the user something is happening - https://github.com/samvermette/SVProgressHUD – Ryan Feb 06 '14 at 12:44

0 Answers0