Your code contains no issues. There's not 3 it's only 2 alerts. here's the flow of alert view:
- As soon as you click on
add button there called 2 selector (may be one inside other OR two IBAction by one button) which contains alert view code in them
- Now that alert2 (with cancel button) get called before alert1(with ok button)
- Then alert1 get called and hide alert2
- Now when you resolve alert1(by clicking on ok button) alert2 shows up again
Now what you need to do is to check "if your button is not connected with 2 IBActions", which that should be as you have no such code to call another alert in this method. And check if it helps.