// Here is a stackoverflow post tracking this:
http://stackoverflow.com/questions/18972647/text-not-visible-in-alertdialog-for-ios7-using-titanium-3-1-3-ga
// Here is a workaround:
https://gist.github.com/cornflakesuperstar/6680066
// Certain long strings are not visible on iOS7 when rendered in an alert dialog, eg:
var disclaimer_heading = "StockLight Usage Agreement";
var disclaimer_copy = "Terms and Conditions\n\nYou must read and accept these Terms and Conditions of use in order to access this application, its contents and other websites through links provided in this application. By accepting these Terms and Conditions of use, you are agreeing to be subject to them, our Privacy Policy and any other notices or limitations contained in this application.\n\nWarning\n\nThe advice given by Intelligent Investor and provided in this application is general information only and it does not take into account your investment objectives, financial situation or needs. You should therefore consider whether the advice is appropriate to your investment objectives, financial situation and needs before acting upon it. You should seek advice from a financial adviser, stockbroker or other professional (including taxation and legal advice) as necessary before acting on any advice. Not all investments are appropriate for all people.\n\nIntelligent Investor and associated websites are published by The Intelligent Investor Publishing Pty Ltd ABN 12 108 915 233 (Australian Financial Services Licence Number 282288).\n\nDisclaimer\n\nThe information in this application has been prepared from a wide variety of sources, which The Intelligent Investor Publishing Pty Ltd, to the best of its knowledge and belief, considers accurate. You should make your own enquiries about any investments and we strongly suggest you seek advice before acting upon any recommendation.\n\nThe Intelligent Investor Publishing Pty Ltd has made every effort to ensure the reliability of information contained in this application, newsletters and websites. All information represents our views at the date of publication and may change without notice.\n\nTo the extent permitted by law, The Intelligent Investor Publishing Pty Ltd excludes all liability for any loss or damage arising from the use of this application and any information published (including any indirect or consequential loss, any data loss or data corruption). If the law prohibits this exclusion, The Intelligent Investor Publishing Pty Ltd hereby limits its liability, to the extent permitted by law.\n\nFinancial Services Guide\n\nOur Financial Services Guide (FSG) contains important information about the financial services provided by The Intelligent Investor Publishing Pty Ltd. You must read our FSG and consider it in light of your own circumstances before acting on any advice. Our financial services guide is available at:
http://shares.intelligentinvestor.com.au/about-us/financial-services-guide\n\nPerformance\n\nPast performance is not a reliable indicator of future results. Our performance figures are hypothetical and based on recommendations from The Intelligent Investor using stock prices at the date of publication. Brokerage costs have not been included. As stocks rise and fall, returns may be negative. We encourage you to think of investing as a long-term pursuit. Performance figures are not intended to be a forecast. Neither The Intelligent Investor Publishing Pty Ltd nor any of its associates guarantee the performance of or returns on any investment.\n\nDisclosure\n\nEmployees and/or associates of The Intelligent Investor Publishing Pty Ltd may hold one or more of the stocks reviewed in this application. Details of holdings are disclosed in the Portfolios section of the Intelligent Investor website:
http://shares.intelligentinvestor.com.au (access for Intelligent Investor share advisor members only). These holdings should not be seen as a recommendation. Staff must adhere to our Staff Trading Policy, which you can find below.\n\nCopyright\n\nCopyright © 1998 - 2013 The Intelligent Investor Publishing Pty Ltd ABN 12 108 915 233. No part of this application, or its content, may be reproduced in any form without the prior consent of The Intelligent Investor Publishing Pty Ltd.\n\nGoverning Law\n\nThese Terms and Conditions of use are governed by and are to be construed in accordance with the laws of New South Wales. By accepting these Terms and Conditions of use, you agree to the non-exclusive jurisdiction of the courts of New South Wales, Australia in respect of any proceedings concerning these Terms and Conditions of use.\n\nStaff Trading Policy\n\nWe do our utmost to avoid conflicts of interest with subscribers. We therefore impose restrictions on staff trading and require disclosure of staff holdings. Trading restrictions are as follows.\n\n• Approval for all staff trades is to be obtained from one of The Intelligent Investor Publishing Pty Ltd's responsible managers or the compliance manager. Approval is at the complete discretion of the responsible manager or the compliance manager.\n• Where a recommendation changes, staff will not be permitted to trade for one day either side of publication. This means the day of online publication, and the day after.\n• Staff must not trade against a buy or sell recommendation. Approval to trade against a buy or sell recommendation will only be granted in exceptional circumstances.\n• Staff must hold all stocks for at least one month. Approval to sell within one month will only be granted in exceptional circumstances.\n\nWe welcome comments on our Staff Trading Policy. You can contact us at
http://shares.intelligentinvestor.com.au/contact-us\n\n \nPrivacy Policy \n\nThis privacy statement describes how The Intelligent Investor Publishing Pty Ltd collects and uses the personal information you provide in the StockLight application and on our Web site: www.intelligentinvestor.com.au. It also describes the choices available to you regarding our use of your personal information and how you can access and update this information.\nIf you have questions or concerns regarding this policy, you should first contact us at emailintelligentinvestor.com.au \n\nCollection and use of Personal Information\n\nWe collect the following personal information from you\n\n• Contact Information such as name, email address, mailing address, phone number\n• Billing Information such as credit card number, and billing address\n• Unique Identifiers such as user name, account number, password\n• Device information\n\nAs is true of most Web sites, we automatically gather information about your computer such as your IP address, browser type, referring/exit pages, and operating system.\n\nWe use this information to\n\n• Fulfil your order\n• Send you an order confirmation\n• Send you requested product or service information\n• Send product updates or warranty information\n• Respond to customer service requests\n• Administer your account\n• Send you a newsletter\n• Send you marketing communications\n• Respond to your questions and concerns\n• Improve our Web site and marketing efforts\n• Conduct research and analysis\n• Display content based upon your interests\n• Contact you by phone to discuss membership options\n\nChoice/Opt-Out\n\nYou may choose to stop receiving our newsletter or marketing emails, Direct mail or phone calls by following the unsubscribe instructions included in emails or you can contact us at emailintelligentinvestor.com.au.\n\nInformation Obtained from Third Parties\n\nWe obtain address information about you from third party sources, such as the US Postal Service, to verify your address so we can properly ship your order to you and to prevent fraud.\n\nIf you provide us personal information about others, or if others give us your information, we will only use that information for the specific reason for which it was provided to us.\n\nInformation Sharing\n\nWe will share your personal information with third parties only in the ways that are described in this privacy statement. We do not sell your personal information to third parties.\n\nWe may also disclose your personal information\n• as required by law such as to comply with a subpoena, or similar legal process\n• when we believe in good faith that disclosure is necessary to protect our rights, protect your safety or the safety of others, investigate fraud, or respond to a government request,\n• if The Intelligent Investor Publishing Pty Ltd is involved in a merger, acquisition, or sale of all or a portion of its assets, you will be notified via email and/or a prominent notice on our Web site of any change in ownership or uses of your personal information, as well as any choices you may have regarding your personal information,\n• to any other third party with your prior consent to do so.\n\n\nCookies and Other Tracking Technologies\n\nWe may use cookies, for example, to keep track of your preferences and profile information. Cookies are also used to collect general usage and volume statistical information that does not include personal information.\n\nWeb beacons\n\nOur Web pages contain electronic images known as Web beacons (sometimes called single-pixel gifs) and are used along with cookies to compile aggregated statistics to analyze how our site is used and may be used in some of our emails to let us know which emails and links have been opened by recipients. This allows us to gauge the effectiveness of our customer communications and marketing campaigns.\n\nWe use a third party to gather information about how you and others use our Web site. For example, we will know how many users access a specific page and which links they clicked on. We use this aggregated information to understand and optimize how our site is used.\n\nLinks to Other Web Sites\n\nThis application and our website includes links to other Web sites whose privacy practices may differ from those of The Intelligent Investor Publishing Pty Ltd. If you submit personal information to any of those sites, your information is governed by their privacy statements. We encourage you to carefully read the privacy statement of any Web site you visit.\n\nSecurity\n\nWhen we collect personal information directly from you, we follow generally accepted industry standards to protect the personal information submitted to us, both during transmission and once we receive it. No method of transmission over the Internet, or method of electronic storage, is 100% secure, however. Therefore we cannot guarantee its absolute security. If you have any questions about security on of this application or our Web site, you can contact us at emailintelligentinvestor.com.au\n\nIn order to make a purchase from us, you must use our shopping cart provider to finalize and pay for your order. Its privacy statement and security practices will also apply to your information. We encourage you to read that privacy statement before providing your information.\n\n\nAdditional Policy Information\n\nCorrecting and Updating Your Personal Information\n\nTo review and update your personal information to ensure it is accurate, contact us at emailintelligentinvestor.com.au.\n\nNotification of Privacy Statement Changes\n\nWe may update this privacy statement to reflect changes to our information practices. If we make any material changes we will notify you by email (sent to the e-mail address specified in your account) or by means of a notice in this application prior to the change becoming effective. We encourage you to periodically review the privacy policy in this application for the latest information on our privacy practices.\n\nContact Information\n\nYou can contact us about this privacy statement by writing or email us at the address below:\n\nThe Intelligent Investor Publishing Pty Ltd\nMillions House Level 2, 122 Pitt Street\nSydney, NSW, Australia 2000\nEmail: emailatintelligentinvestor.com.au\nPhone: 1234 567 890";
var disclaimer_decline = "I Do Not Accept";
var disclaimer_accept = "I Accept";
var dialog = Ti.UI.createAlertDialog({ title: disclaimer_heading, message: disclaimer_copy, buttonNames: [disclaimer_accept, disclaimer_decline], cancel: 1 });
dialog.show();
Did this used to work in iOS 6 or a previous version of the Titanium SDK? Is this possible natively with such a long piece of text?
Yep. Run the code on an iOS 6.1 or android simulator/device and it works fine.
However, i don't know whether it works on iOS7 if it's run in a native app (without titanium).
Hello Jason, you should create a custom dialog to implement this, providing a scrollable view for all your text and two buttons as your image. Check this code: https://developer.appcelerator.com/question/152503/creating-a-custom-dialog In native, Apple expects you to create a custom UI element for that kind of usage. Best, Mauro
Hi Mauro, That's exactly the technique I used as a workaround in the issue description (follow the gist link and view iOS7CompatibleTitaniumAlertDialog.js). This problem should not however, require a custom implementation. According to your API, a standard alert dialog should support this functionality: http://docs.appcelerator.com/titanium/latest/#!/api/Titanium.UI.AlertDialog As such, there is in fact a bug with the way a Titanium.UI.AlertDialog is rendering certain long strings. This may or may not be a bug with the underlying iOS API but it's definitely a bug. Regards, Jason
Invalid issue.