Best regex library for iphone sdk app? [closed] - iphone

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 7 years ago.
Improve this question
I'm confused about the regex libraries that are available in the iPhone SDK. For example RegexLite looks like it needs a dynamic link, and from what I understand, this is not possible for the SDK on the iPhone.
I want a RegEx library for data validation... which one is the best available?

Just want to add here that iOS 4 now has NSRegularExpression.

John Englehart (regexkitlite developer) has posted to cocoa-dev saying that apps are being rejected for using it. http://lists.apple.com/archives/Cocoa-dev/2010/Jun/msg00564.html
(Apologies for this purporting to be an "answer", it would be a reply to Kendall Helmstetter Gelner if only I had 49 more reputation points).

RegexKitLite is available and works properly on iPhone either included from source as part of your Xcode project or by linking in a static library (which the ToS of the SDK do permit).

Using RegexKitLite requires dragging only a source and header file into your project, and works really well - it offers most of the features you'd want from a regex library. It's basically just a very thin wrapper around an underlying framework that's already there.
Make sure the source type for header and .m file is "sourcecode.c.objc" after you add them to the project (Use "Get Info" on a given source file and look at the "General" tab).

RegexKitLite uses the regular expression engine provided by the libicucore.A.dylib library. However Apple does not officially support linking directly against this library. See this post to the Xcode-users mailing list for details. However despite this there are many iPhone applications available on the App Store than make use of RegexKitLite, so it's unlikely (but not impossible) that Apple will reject your application for making use of it.

This is a nice lightweight alternative to RegexKitLite: https://github.com/bendytree/Objective-C-RegEx-Categories

Related

How does Apple make their Swift programming books? [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 5 years ago.
Improve this question
I'm trying to create a book using a template (or just formatting in general) similar to the ones used with the Apple Swift Programming Language iBook.
I'm struggling with figuring out exactly what software Apple uses to create the book with such simple and clean formatting along with what they use to create the headers, coding samples, comments, etc (is it a special version of Markdown?).
My Google searches with "what apple uses to create books", "what apple uses to create api documentation", "apple software for dev books", etc. didn't really lead to much. The searches themselves might not have been effective either, so there's that possibility.
Regardless, I got answers involving RegexKit, HeaderDocs, and Gentle Bytes, and it didn't seem too relevant to what I was trying to do.
So then I did some digging into the main frameworks that build up the iBook and I found these files (there are more but the image only shows some).
Mainly xhtml files.
So really all I'm asking is what software does Apple use to combine all these files or did they use a different application that automatically combined them as they inserted them while creating the iBook? Do they even use iBooks Author or rather an internal application that's not available for download outside of Apple? OR maybe it's something that's not related to anything I said and I'm way off track.
Any help would be greatly appreciated.
Because it is an iBook I would assume that they used iBooks Author
After you created your iBook with iBooks Author, you can convert it to HTML, it will create many files then.

Python or Ruby Interpreter on iOS [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 4 years ago.
Improve this question
I found this application on the app store: iLuaBox
and I wondered if there was anything else like this for the iPhone without jailbreaking but instead for Python or Ruby?
Lua is probably similar for me to play around with the basic programming I do anyway but I thought I would just ask)
A python interpreter App called Python for iOS is available on the App store:
http://itunes.apple.com/us/app/python-for-ios/id485729872?mt=8&uo=4
Full disclosure: I am the sole creator/developer of the Python for iOS App.
The Agreement about Apple not accepting any coding language layer has been removed not too long ago.
I guess we will have to wait a little to see complex language like Python and Ruby interpreter.
Since Lua is a scripting language, it is easier to port it.
Pythonista by omz:software (I have no affiliation) just came out for the iPad and it looks pretty good. Has an extended keyboard, code completion and other nice things.
http://omz-software.com/pythonista/
App Store link: http://itunes.apple.com/app/id528579881
If you just want to be able to run ruby and python scripts, codetogo lets you do that.
http://itunes.apple.com/us/app/codetogo/id382677229?mt=8
It gets around it by sending your code to a server, running it and then sending back the result.
There is now a statically compiled Ruby variant for iOS:
http://www.rubymotion.com/
This has been built on top of the well established MacRuby framework.
There is a simple native Python interpreter for IOS available now. No jailbreak needed:
http://itunes.apple.com/us/app/pypad/id428928902?mt=8
there is also python math which is free but it has its modules restricted to the math stuff but it allows you to sync .py scripts from itunes so you could import any modules that you need
http://pythonforios.com/
Try the above mentioned app. Not for free, but I guess it will do the trick
A Python module that allows running Lua code from Python in a sandbox. Intended to execute arbitrary, possibly unsafe code submitted by users.
Source code

How to implement VoIP + SIP in iPhone? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 4 years ago.
The community reviewed whether to reopen this question 7 months ago and left it closed:
Original close reason(s) were not resolved
Improve this question
I want to develop a VoIP application for iPhone .
But I don't know the basics of VoIP concepts and also if there are any sources or library available that can I use in my application .
So if anyone can provide me VoIP learning resources or library or anything that is useful in terms of VoIP and iPhone it will be precious to me .
If it's still relevant: use pjsip . It's a SIP library written in C. You must compile the source for iphone, it is described in the docs here. After that take a look at a very basic sample application here. It isn't very hard to use even if you don't know C, or how to compile libraries. Which was my case.
UPDATE Please be aware that pjsip uses GPL license.
Another option is Twilio Client which has an iOS SDK. With Twilio you don't have to maintain any of the telephony infrastructure.
(I worked at Twilio)
I think you should check my answer in this link.
iOS: Open Source VoIP/SIP Objective-C Code
Also check
SIP library for iOS with non-GPL license
You can also try OZeki,SIphone etc
There is a helper to handle calls in iOS Apple Standard library CallKit Apple Documentation - CallKit
There is one lecture about it here WWDC 2016
And, there is a tutorial in Ray Wenderlich here
You still might need some library to handle SIP connections and handle incoming calls.
Open source library linphone
Paid library voipsipsdk

UPnP for iPhone [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 8 years ago.
Improve this question
What free upnp library would you recommend for iPhone development? It has to support control point features and allow to serve files off from iPhone.
There is an open source project on Sourcefourge that will do this called CyberLink for C
It is written in C which integrates with Objective-C easily, but they provide Objective-C wrappers also. With it you can create UPnP applications easily with Objective-C on Mac OS X.
This is not to be confused with the Cyberlink DVD player software. They are two completely different things.
Consider this one: http://code.google.com/p/upnpx/
There is also MiniUPNP, http://miniupnp.free.fr/ which is open source. It is in C and written for POSIX, no idea if that works on the iphone.
This is another vote against CyberLink. Lots of bugs, basic functionality is missing, and way too slow on mobile devices (I think the main performance problem is that it is designed around DOM based XML parsing rather than SAX based).
I have heard a lot of people mention using the Platinum UPnP library, but so far I haven't found any Obj-C wrappers for it. I may just bite the bullet and do that soon.
Does anyone else know of a Platinum Objective-C wrapper?
I'm currently playing with the CyberLink, and it's loaded with bugs :(
I think that the Portable UPnP should be better, as it's actively maintained (although the last release was several years ago, the subversion repository is constantly updated).
As you asked this question almost year ago, I wonder how things turned out.
You can use ohNet. It contains both control point and device stacks, is available under a BSD license and has C++ and C APIs which are usable on iPhone.
(Disclaimer: I have contributed to this project)

Muscial notation on the iPhone. Any suggestions for example code? [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'm writing an iPhone app where I'd like to display some simple musical notation (just a chord or two).
This question is a call for suggestions on the quickest way to go about it. For instance:
Is there any iphone OR objective-C libraries for doing this that I'm missing?
Are there any examples of open-source objective-C software in the wild I could look at? It wouldn't have to be iPhone specific.
If there isn't any objective-C code to do this, anyone know of any musicial-notation rendering software in other languages?
Indeed, MusicKit is an audio tool, not a symbolic tool like you need.
I don't know of any open-source Objective-C music notation programs. However, the recently-released Zong! Viewer is an open-source (GPL) Java program. You can't run Java on the iPhone, of course, but it might give you some ideas for structuring your software. MuseScore is an open source music notation editor that might provide more ideas.
So far the only iPhone music notation application I know is pocketscore. It has the great idea of exporting MusicXML files via e-mail so you can work on your music later with a more full-featured program than you can write on an iPhone.
There might be other open source programs you can check out on the MusicXML software list. Good luck!
This is an objective-c music analysis framework which may have what you need:
musickit