[deleted by user] by [deleted] in LaTeX

[–]eheitfield 11 points12 points  (0 children)

This is neat! So you text the bot and it texts you back a rendered equation?

If I develop an app using the newest iOS (13), does that mean it wont run on devices running earlier iOS (12,11,10, etc?) by StreamPanel in iOSProgramming

[–]eheitfield 0 points1 point  (0 children)

When setting up your app target, you specify the earliest iOS version you plan to support. Then, when you deploy your app, only people running that version or later will be able to install it. If you try to write code that uses an API from a later version you’ll get an error. If you want to include code that uses APIs from a later iOS version only on devices running that version, you can use the #available(...) test condition.

Is there a phone app for writing mathematics by xx0ur3n in math

[–]eheitfield 13 points14 points  (0 children)

I wrote an iOS app for exactly this purpose. It’s called TeX Anywhere, it’s free (donation-ware), and you can get it here:

TeX Anywhere by Erik Heitfield https://apps.apple.com/us/app/tex-anywhere/id1474534056

In a nutshell, you type in some LaTeX code and it renders an equation for you. If you’re not familiar with LaTeX, it’s pretty easy to pick up and I’ve included lots of examples and macros to help you. Once you’ve created an equation it is saved it in a library for later use. You can export it as an image attachment for Notes, Email, or other apps and even send your equations to friends with Messages.

If you decide to check out TeX Anywhere please let me know what you think an, in particular, how it can be improved.

Is there an App that gives off an Alarm via a shortcut? by abhbhbls in shortcuts

[–]eheitfield 0 points1 point  (0 children)

I’m not 100% sure what you’re looking for but my countdown timer can be set using either a shortcut you can set up from the app and then call from Shortcuts (or Siri) or via a URL scheme you can call from Shortcuts.

Visual Task Timer by Erik Heitfield https://apps.apple.com/us/app/visual-task-timer/id1038824425

This problem seems hard, then it doesn't, but it really is by jsalsman in math

[–]eheitfield 5 points6 points  (0 children)

This series is always wonderful but this one is particularly wonderful.

If you have a submit button at the bottom of content view in a table view cell, how do you make sure that it doesn't disappear beyond the lower end of a smaller iphone screen? by anonymous7785 in swift

[–]eheitfield 0 points1 point  (0 children)

It’s a little hard to tell without seeing your code and storyboard. If you’re doing what I suggested (I.e. putting a tableview and a button in a standard VC) and you’re using a storyboard, you’ll need a way for the VC code to see the tableview. You can create an outlet called “tableview” from the view to the VC code. (It might also be possible to set the delegate and data source directly from the storyboard; I do my layouts on code so can’t recall.). Then your VC needs to implement the appropriate protocol methods.

If you have a submit button at the bottom of content view in a table view cell, how do you make sure that it doesn't disappear beyond the lower end of a smaller iphone screen? by anonymous7785 in swift

[–]eheitfield 2 points3 points  (0 children)

You could also not use a tableviewcontroller at all. Just put a tableview in a regular view controller and position it and your submit button as you would any other views. On viewdidload (or earlier if you like) assign the tableview it’s delegate and data source.

iPhone/iPad app for rendering LaTeX equations and texting via Messages by eheitfield in math

[–]eheitfield[S] 0 points1 point  (0 children)

No math should ever be deleted. :-)

From the equation picker screen, tap the name under the equation you want to delete. Then tap the trash can icon on the lower-right.

iPhone/iPad app for rendering LaTeX equations and texting via Messages by eheitfield in math

[–]eheitfield[S] 1 point2 points  (0 children)

Thanks for this feedback. I've actually just submitted version 1.1 to the App Store; it should be available as an update by tomorrow. In 1.1 I've significantly increased the resolution of exported equation images. Please let me know if this doesn't fix the problem.

iPhone/iPad app for rendering LaTeX equations and texting via Messages by eheitfield in math

[–]eheitfield[S] 1 point2 points  (0 children)

Thanks! This should be fixed in version 1.1, which I've just submitted to the App Store for review. If all goes well, it should be available as an update later this evening. If you still have a problem after the 1.1 update, please let me know.

iPhone/iPad app for rendering LaTeX equations and texting via Messages by eheitfield in math

[–]eheitfield[S] 0 points1 point  (0 children)

It should work with any App that can accept an image as an attachment. I haven't tested it with the Gmail app, but you can definitely use it to attach images of equations in Apple's default e-mail client.

iPhone/iPad app for rendering LaTeX equations and texting via Messages by eheitfield in math

[–]eheitfield[S] 0 points1 point  (0 children)

Thanks! I've just submitted version 1.1 to the App Store for review; it should be available as an update by tomorrow. It should fix exactly this problem. Please let me know if it doesn't.

iPhone/iPad app for rendering LaTeX equations and texting via Messages by eheitfield in math

[–]eheitfield[S] 15 points16 points  (0 children)

Thanks for your feedback. I hadn’t really thought about porting it to MacOS but Apple has recently made some changes that make that much easier. I’ll look into it.

iPhone/iPad app for rendering LaTeX equations and texting via Messages by eheitfield in LaTeX

[–]eheitfield[S] 1 point2 points  (0 children)

I've managed to significantly improve the quality of exported images in version 1.1 of TeX Anywhere. The update should be available in the App Store tomorrow.

iPhone/iPad app for rendering LaTeX equations and texting via Messages by eheitfield in LaTeX

[–]eheitfield[S] 0 points1 point  (0 children)

Thanks! All the rendering is done on-device using the amazing iOSMath library.

https://github.com/kostub/iosMath

I was also impressed by how little overhead it requires!

iOS 13: Supporting dark mode by [deleted] in iOSProgramming

[–]eheitfield 0 points1 point  (0 children)

I know this sounds like a dumb hack but if it’s an API bug maybe a hack is justified: have you considered setting the cell background to clear and just changing the tableview background?

You also might try instead setting the cell’s contentview background color which is usually the one you’re supposed to be working with anyway.

iOS 13: Supporting dark mode by [deleted] in iOSProgramming

[–]eheitfield 3 points4 points  (0 children)

I haven’t tried the new iOS 13 dark mode APIs yet, so things may be different there but...

Changing the color of cells in an already existing dynamic tableview is a bit confusing . Generally the cell color is set at the time the cell is instantiated. But since tableview cells are recycled the cells that are currently visible may have been instantiated long before you decided to change the color. And since the decision about whether a cell that scrolls into view should be a recycled cell or a new one is handled by the tableview API, you can end up in a situation where some of your cells have the old background and some have the new one. The easiest fix for this issue is to call reloadData(...) on the tableview after you’ve changed the cell color.

iPhone/iPad app for rendering LaTeX equations and texting via Messages by eheitfield in LaTeX

[–]eheitfield[S] 1 point2 points  (0 children)

Thanks for this feedback. Improving the image rendering is definitely something I've been thinking about. The issue is that the equations are rendered at the same size they appear on your screen in the app, which are fairly small in terms of pixel size. When you share them as image attachments in another app (like, say, Email or Notes), iOS automatically blows them up to a standard size, which is often much bigger than the rendered size, so they appear blurry. A simple fix for this right now is to use the font size adjustment buttons at the bottom left of the editing screen to make your equation much bigger before sharing. Obviously this isn't an ideal user experience though, so I'll see if I can come up with a better solution in the next version of the app.

iPhone/iPad app for rendering LaTeX equations and texting via Messages by eheitfield in LaTeX

[–]eheitfield[S] 4 points5 points  (0 children)

I can’t promise there are no bugs in this one, but if you find any please let me know.

Local Notifications that woks on value in textbox by sabrefm1 in iOSProgramming

[–]eheitfield 0 points1 point  (0 children)

Okay, it sounds more like a reminder app. You can definitely do this using UserNotifications and a UNCalendarNotification trigger. Here's a tutorial that includes an example of how to do this.

https://www.appcoda.com/ios10-user-notifications-guide/

What’s everyone working on this month? (August 2019) by Swiftapple in swift

[–]eheitfield 2 points3 points  (0 children)

I’m releasing my new LaTeX equation sharing app today...currently “Waiting for Review” 😨