I searched for an answer to this, but perhaps the question is a bit too noob for this site--basically I'm a bit overwhelmed by all the different frameworks out there or even how to find what you need in a single framework. If I want to, say, find a way to fetch address book data into my app, how do I search for that? Is there some magic efficient way that everyone uses?
The xCode Organizer window has a documentation tab that you can search in. Put in a keyword and it will show you refrences, example code and what framework that class is in.
I'm not 100% sure this qualifies as an answer, but yep: Google for it. Whenever I want to learn about something new, I Google for (for example) "iOS Address Book Example". That seems to be the best way to find info on how to get into a new subject when you're not sure which framework to look in.
If you have an idea of which framework is appropriate, then the iOS documentation (both at developer.apple.com and built into xCode) is your friend.
Just found this, looks useful:
http://sazameki.jp/software/cocoa-browser-air/
I know it's just the same info you can see elsewhere, but at first glance at least the layout makes it all seem more managable.
Related
I'm currently exploring the capabilities of custom passes in Apple Wallet.
One thing I would like to do is enable users to be able to go to my website if they click their gift card's icon.
However, after looking through the documentation - there doesn't seem to be any support for this basic ask.
The closest thing I was able to find was adding URLs to the back of the custom passes. Anyone know of a workaround?
I'm looking for the same thing.
I'm surprised people praise Apple Wallet passes that much, when it's really bad to work with.
Everything is file based, and you have to create a physical zip-file.
Google's approach is much better imho: everything is done via an API, so the pass itself is just a url with a token. Sharing a Google Pass is so much simpler and works everywhere.
Updating a pass is simple; just call the Google Api and everything will be ok. Images and assets are urls. Much much better to work with.
Updating an Apple pass involves fricking Push notifications, it's mind bogglingly complex compared to Google's solution.
Oh well
How could I access a website and turn components of the website into strings. For example taking information from Facebook posts. I have done a little searching but can't find any good tutorials or anything useful.
Try looking at this tutorial. It should get you more familiar on the subject and start you off on the right track.
As it states at the beginning of the tutorial...
How to Parse HTML on iOS
Let’s say you want to find some information inside a web page and
display it in a custom way in your app. This technique is called
“scraping.” Let’s also assume you’ve thought through alternatives to
scraping web pages from inside your app, and are pretty sure that’s
what you want to do. Well then you get to the question – how can you
programmatically dig through the HTML and find the part you’re looking
for, in the most robust way possible? Believe it or not, regular
expressions won’t cut it! Well, in this tutorial you’ll find out how!
You’ll get hands-on experience with parsing HTML into an Objective-C
data model that your apps can use.
http://www.raywenderlich.com/14172/how-to-parse-html-on-ios
I'm trying to find examples of code libraries or sample code for adding a commenting functionality in my apps. I've successfully implemented the Disquser iOS wrapper (http://bit.ly/iadisquser) in a couple of my apps but find it difficult to manage. I've seen other apps that incorporate a commenting feature that's cool, including theCHIVE Lite app, that looks like its using Facebook maybe?? Any hints or suggestions?
Look at QuickBlox Custom Objects code sample. I think it's what you need.
It represents user's notes, which he can create & comment. So, you can implement this comments logic into your apps and comment any item you want
There's a good tutorial for building a chat app that may help you get started, you can find it here: http://www.ibm.com/developerworks/library/x-ioschat/index.html
Just curious if there is an existing storyboard version of Facebook integration around because I've been googling for about 2 days. So far, I can do authorization for my app and what I have in mind is to try posting a simple status message perhaps from my app to my Facebook newsfeed. Most of the demos / tutorials I've gone through use xib's though such as this. This one is a good tutorial, however I want a storyboard version for this. Tell me if this post is a dupe and kindly post that question so I can study it.
I know there were a lot here that know the idea of sharing :)
So any helpful links were very much appreciated, as it will, in a way, boost my learning experience as well as the others who are starting iOS development :)
Thanks!
If you wish to simply post a status update you should be able to use the same examples that are shown in nib files. However if you want to see a sample app that uses story boards you can take a look at this sample app:
https://github.com/fbsamples/ios-social-cafe
It uses story boards to set up the UI and perform facebook login. You can also check it out to see how to use the new UI pickers (friends, place) and how to do open graph actions.
If you have more specific details around how you want to post a status update, please provide them so I can clarify further.
Yes, there is a simple example of an iOS app using Storyboards (iOS5 and later): https://github.com/fbsamples/ios-social-cafe
Hopefully that's helpful and shows how to do a good authorization flow with Storyboarding.
Good luck.
i wonder how google manages to open external links in a new window/tab without defining target="_blank".
For example in google plus, all external links open in a new window.
I think its some Javascript voodoo but the .js code is obfuscated so i cant really look into.
edit: oh and followup question: why?
Using a framework makes this easy. Just have JavaScript look for links marked rel="external", or another identifier that shows them to be an external link, and dynamically add target="blank". Here's an example using Prototype:
$$('a[rel="external"]').each(function(a) {
a.setAttribute('target', '_blank');
};
It's not beyond reasoning for them to add the target attribute by javascript before allowing the anchor link event to return true.
It's Javascript. You can say:
window.open('http://example.org', '_blank').focus();
But please, don't. Opening links in new windows is almost always the wrong thing to do. Seriously, good uses of this are vanishingly few. If users want a link opened in a new window, they are quite capable of doing that themselves.
Jakob Nielsen was telling people this twelve years ago. Others have taken up the cudgels. The W3C removed the target attribute from HTML 4 because it was such a bad idea. I honestly don't understand how this usage persists. Don't you find it incredibly annoying when a website does this to you? Why would you want to write a website which does this to someone else?
Which brings me to your followup question. Why did Google decide to do this? I have no answer to that, and i am completely and utterly baffled how one of the very biggest, brightest, web companies could make such an elementary mistake. But then, a lot of the Google Plus interface has very poor usability (as in, mostly worse than Facebook poor); i suspect there is an interesting story behind it. Was the project under-resourced, and thus built cheaply on top of a rapid development framework such as GWT? Was it built as a spare time project by a lone wolf with a blind spot for web architecture? Was it driven by strategy wonks who didn't care about getting the technology right? Mystery.