Writing formatted text to a file iphone [closed] - ios

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 5 years ago.
Improve this question
I am looking to export data that a user creates in my app in a formatted style. What I mean by this is I would like it to have capabilities like a word document with centered headers, larger font in certain places, etc... In the end the user will be emailing the document, which is why I would like it to look nicer than a standard plain text document. There has to be a way to do this right?
If you could point me in the right direction to get this functionality that would help me a lot..

Create an HTML document with inline styling. You can then use that directly in the body of the email message as an HTML email (I know they can sometimes be frowned upon).
But to be honest, that'll be the quickest way to achieve what you are after.

maybe can you give a look at:
http://www.cocoanetics.com/parts/dtrichtexteditor/
https://github.com/enormego/EGOTextView
https://github.com/omnigroup/OmniGroup/tree/master/Frameworks/OmniUI/iPad/Examples/TextEditor/
and this apple documentation:
https://developer.apple.com/library/mac/#documentation/Cocoa/Conceptual/AttributedStrings/Tasks/RTFAndAttrStrings.html

Related

Displaying a message at the top of the ViewController [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 4 years ago.
Improve this question
I want to display a message to the user in the same way as the following message "Invalid password" but I do not know what this kind of messages are called, and how they can be implemented.
These are not standard messages, they are just UIViews (with a slight transparancy) that are located on top of the view stack and being hidden and displayed due to some events.
Just search for something like "overlay views" in a search engine of your choice.
I quickly found the following (without knowing them):
https://github.com/SwiftKickMobile/SwiftMessages
http://zappdesigntemplates.com/create-your-own-overlay-view-in-swift/
Please use below library for the same.which is very appropriate and accurate and very easy to implement.
https://github.com/SwiftKickMobile/SwiftMessages
I think SwiftMessages is easily fulfill your requirements.

Can I customize the message shown at the bottom while multi tasking in iOS? [duplicate]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 5 years ago.
Improve this question
I would like to customise App Suggestions in iOS programatically.
It usually says Good Morning and my app name.
Is it possible that I configure it to say something other than "good morning"?
Can I control when and where it appears?
I couldn't find much information in this regard.
Thanks,
Elstine
You can't modify App Suggestions from an application, as that content is outside of the scope of an app's sandbox.
"Good Morning" appears there because the App Suggestion feature detected that you usually use a particular app in the morning and greets you with an according message. Those strings come directly from this feature and are not app-dependent; therefore, they can't be changed as of now.

How to text data from website [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 8 years ago.
Improve this question
Hi Im currently developing an app where I have some text which informs the user about something. This information is also on my website and what i want to do is when i change the information on my website I also want the text in my app to change. I know that you can create a backend tableview with for example parse but that's not what Im looking for. I've done som research and think what i need do to is use JSON in some way to display the text from my website in my app. Pleas comment If you don't understand what It s that Im trying to accomplish. If you could either link a tutorial or explain how/if this is possible I would appreciate It very much!
you can make a json call from your app to a url and have a script or file in your website that returns the information you want, this will make it easy to change it in future. then use the same script as the basis ( again using a json call) to get the text for the specific webpage.
It's difficult to answer more specifically since you've mentioned no technology base for your website.

How can you automatically translate a page on load? [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 7 years ago.
Improve this question
Google Translate. Bing Translate. You can add a widget. You can select "Spanish" and the page will translate to Spanish.
I do not want to user to have to select "Spanish". I want the page to load in Spanish automatically. Never mind why I want these things. They are necessary parameters.
You could start by looking at navigator.UserLanguage in javascript. It's not entirely foolproof, but it's a good starting point, and provided the users aren't messing with what the navigator object actually pulls (fairly easy to fake) it should give you a reasonably good start.....you don't really have what language(s) you're using on your page tagged, so it's sorta hard to provide specific help.
Reading the documentation might help http://msdn.microsoft.com/en-us/library/dn341982.aspx#feedback

What is the best way to format LaTeX source for the Kindle? [closed]

Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 10 years ago.
Improve this question
I am trying to format my book for a Kindle 3. I'm writing the book using LaTeX. I am ok with transferring the file in PDF format but I need it formatted to be small.
I have tried:
\documentclass[12pt,b7paper]{book}
\usepackage[top=0.5cm, bottom=0.5cm, left=0.5cm, right=0.5cm]{geometry}
But this is too small. I have also tried something like:
\usepackage[paperwidth=9cm, paperheight=12cm, top=1cm, left=1cm, right=1cm, bottom=1.5cm, includefoot]{geometry}
But that doesn't work well either. Has anyone found a good way to format a LaTeX PDF for the Kindle? (Not the big DX version.)
This works well. I found it important to remove paper size from the dvips command. Forgetting to adjust that setting through me off for a while.
\documentclass[12pt]{book}
\usepackage[paperwidth=9cm, paperheight=12cm, top=0.5cm, bottom=0.5cm, left=0.0cm, right=0.5cm]{geometry}
\special{papersize=9cm,12cm}
Why don't you convert the LaTeX to HTML and create a Mobipocket document from that? That way, the Kindle will be able to reflow the document, which it cannot do if you load it in PDF form.
This may be much more than you need, but it's worth pointing out that there's a much more comprehensive answer over on tex.stackexchange

Resources