I don't know why the sender.currentTitle returns nil but you can upwrap it (better to not force an unwapring) and print the result