So far, already know 3 kinds of iOS Bullets: 1, System frame-bottom frame uiactionsheet (1) Usage: Handling user very dangerous operation, such as Logout system (2) Example: Uiactionsheet *sheet = [Uiactionsheet Alloc] initwithtitle:@ "OK to log out?" Delegate:self cancelbuttontitle:@ "Cancel" destructivebuttontitle:@ "OK" otherbuttontitles : nil, nil];
[Sheet ShowInView:self.view]; (3) Effect 2, System bullet frame-middle frame (1) Usage: Handling General reminders, if not necessary, try not to, affect the friendliness of. (2) Example: Uialertview *alert = [[Uialertview alloc] initwithtitle:@ "Warning" message:@ "Account or password error" Delegate:nil Cancelbuttontitle : @ "Good" otherbuttontitles:nil, nil];
[Alert show]; (3) Effect: In the Login interface, enter the account password, if there is an input error, the box prompt, you must click on the "good" to re-enter 3, the three-party frame mbprogresshud box-Intermediate bullet Frame (1) Usage: need to introduce the framework file, here on its basis, Wrote a classification, the header file "Mbprogresshud+mj.h", more convenient method call. Other files that need to invoke the method contain the header file. The advantage is that it only prompts for 1 seconds and then disappears quickly without the user having to click. More friendly. (2) Example: [Mbprogresshud showerror:@ "password error"];
[Mbprogresshud showmessage:@ "Login ...."]; (3) Effect: Frame plug-in mbprogresshud.zip Baidu Network address: Link: Http://pan.baidu.com/s/1pJJXymZ Password: 5euj
3 Popular iOS Bullet frames