Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 3794216
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 19, 20262026-05-19T12:53:44+00:00 2026-05-19T12:53:44+00:00

It seems that I am always fighting with UIAlertView to make it do what

  • 0

It seems that I am always fighting with UIAlertView to make it do what I want. I’m done fighting – are there any robust UIAlertView replacements with the following features, or will I need to write my own?:

  • ability to customize the alert-view size/position
  • ability to change the layout of the
    buttons (stacked vs. side-by-side)
  • ability to prompt users for input via UITextField or UITextView
  • resizing / repositioning behavior
    when the keyboard appears
  • ability to have a UITextView for
    scrolling text
  • pixel-perfect copy of UIAlertView for
    basic display
  • ideally interface compatible with
    UIAlertView – i.e. it is a drop-in-replacement.

I’ve found a few blog and stackoverflow posts which implement customizations on a UIAlertView – this is NOT what I want. Nor do I want a guide on how to implement a custom AlertView — I know how, I just want to find one that is already community maintained. I want a ground-up replacement that is safe for App Store submission and future-proof against UIAlertView changes (yes, I’ve been burnt…)

Please respond with comments if you have suggestions for other desirable features.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-19T12:53:45+00:00Added an answer on May 19, 2026 at 12:53 pm

    Answering my own question.

    I searched high and low for a prefab UIAlertView project that offered the features I was looking for. I’m sure they exist — I’ve seen apps with great alerts. Their authors must not be sharing – which is totally fine, I understand.

    So I wrote my own. TSAlertView is a ground-up implementation of a modal alert view that is interface-compatible with UIAlertView. In terms of visual look, while it is not a pixel-perfect copy, it comes very close. The features it offers are basically what I outlined in the original question:

    • ability to set the display-width and max-height of the alert view. This allows me to have nicer looking alerts on iPad.

    • ability to specify the layout of the buttons (stacked vs. side-by-side), even if there are only two buttons. This always bothered me with UIAlertView — if I had two buttons they were always placed side-by-side. A big problem if the button text didn’t fit.

    • ability to prompt users for input via a UITextField. Once in a while you just need a quick and dirty way to prompt the user to enter something.

    • resizing / repositioning behavior when the keyboard appears. (happens when prompting for user-input)

    • ability to have a UITextView for scrolling text. Can explicitly set this option instead of relying on UIAlertView to swap in a UITextView for long text.

    • near pixel-perfect copy of UIAlertView for basic display.

    • support for custom backgrounds

    • is interface compatible with UIAlertView – i.e. it is a drop-in-replacement.

    I’ve used a handful of great open-source projects in my code in the last year. My two favorites are MBProgressHUD and MGSplitViewController, each hosted at github. I decided to share TSAlertView in the same manner.

    https://github.com/TomSwift/TSAlertView

    The initial implementation surely has some bugs. I haven’t used it in a shipping project yet, but I am using it in my current project to be completed in a few weeks. If you want to try using it yourself, please feel free. Post any issues on github, or better yet, submit a fix.

    Enjoy!

    Here are some screenshots showing 1) 2 stacked buttons 2) input capability 3) explicit width setting

    showing 2 stacked buttons here showing input capability showing wide-layout

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

From a couple of preliminary tests it seems that EnumWindows always returns windows in
It seems that my Sql Server Full text catalog is not always up to
I have a winforms datagridview that seems to always have at least one row
It seems to me that one should always properly dispose resources when calling Directory
It seems that -O2 is always generated unless I specify optimize-speed (which results in
I have an IIS6 ASP.NET 2/3.5 site that ALWAYS seems to be caching anything
Hey, following my struggles with the MVC DropDownList posted here , it seems that
I'm writing a utility in C# that will make managing multiple Mercurial repositories easier
It is in ScalaDoc but without much documentation. It seems that it always returns
From a lot of what I've been reading, it seems that you always would

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.