Here is an example of a dynamic map rendered with CartoDB
Try the search, it's linked to some great forums
Sunday, May 24, 2015
Saturday, February 14, 2015
Gender Equality Heatmap
Here's a nicely designed heat map of 136 countries that has great coloring, simple detail info below;
Saturday, January 17, 2015
Facebook Integration notes
Notes & research;
FB Graph API URL - https://developers.facebook.com/docs/graph-api/common-scenarios
From FBs documentation
Good Wenderlich tutorial - http://www.raywenderlich.com/1626/facebook-tutorial-for-ios-how-to-post-to-a-user-wall-upload-photos-and-add-a-like-button-from-your-iphone-app
More Info from FBs API
Stunning example of FBs Story photo album I take back what I said about FBs slideshow features!
https://www.facebook.com/fanpage.it/posts/945924002095941
FB Graph API URL - https://developers.facebook.com/docs/graph-api/common-scenarios
From FBs documentation
Other links:Uploading Photos and Creating Photo AlbumsApps are able to publish and create new photo albums, and publish photos via the Graph API on behalf of people or Facebook Pages. Photos can be uploaded by sending the actual image files, or by using URLs of images already on the internet.
Read These Docs
Use These APIs
- Platform Policies that cover publishing behavior in apps.
- Guide to Publishing with the Graph API.
/{user-id}/albums
to create empty photo albums for people./{user-id}/photos
to add individual photos for people./{page-id}/albums
to create empty photo albums for Facebook Pages./{page-id}/photos
to add individual photos for Facebook Pages./{album-id}/photos
to add photos to an existing album for people or for Pages.
Good Wenderlich tutorial - http://www.raywenderlich.com/1626/facebook-tutorial-for-ios-how-to-post-to-a-user-wall-upload-photos-and-add-a-like-button-from-your-iphone-app
More Info from FBs API
FBs tutorial for an Open Graph Story integration - https://developers.facebook.com/docs/ios/open-graphTelling Stories with Open GraphOpen Graph lets apps tell stories on Facebook through a structured, strongly typed API.
People use stories to share the things they're doing, the people they're doing them with and the places where they happen. Open Graph lets you integrate apps deeply into the Facebook experience, which increases engagement, distribution and growth.
Stunning example of FBs Story photo album I take back what I said about FBs slideshow features!
https://www.facebook.com/fanpage.it/posts/945924002095941
Sunday, January 4, 2015
Google Drive API Integration
These are various notes & references for theabove task;
DrEdit is a sample/template app from Google that allows The User to log on to their personal Google Drive and access files. I am integrating it into the RouteTracker app.
Changing folder view - http://stackoverflow.com/questions/14603432/listing-all-files-from-specified-folders-in-google-drive-through-ios-google-driv?rq=1
Another thread - http://stackoverflow.com/questions/20391734/listing-all-files-and-folders-from-google-drive-in-dredit
Beginning to understand the Query process - http://stackoverflow.com/questions/16527415/google-drive-sdk-for-ios-issue-with-queries
We had a problem with compiling ARC and nonARC (retain, release) files. The older DrEdit project was non ARC & would not compile with my newer ARC built file. This post fixed it - http://www.codeography.com/2011/10/10/making-arc-and-non-arc-play-nice.html Trick is to add
NSUserDefaults - This class is used to store app parameters & other values needed to be passed around to the various controllers. Here's a nice tutorial- http://www.idev101.com/code/Objective-C/Saving_Data/NSUserDefaults.html
DrEdit is a sample/template app from Google that allows The User to log on to their personal Google Drive and access files. I am integrating it into the RouteTracker app.
Changing folder view - http://stackoverflow.com/questions/14603432/listing-all-files-from-specified-folders-in-google-drive-through-ios-google-driv?rq=1
Another thread - http://stackoverflow.com/questions/20391734/listing-all-files-and-folders-from-google-drive-in-dredit
Beginning to understand the Query process - http://stackoverflow.com/questions/16527415/google-drive-sdk-for-ios-issue-with-queries
We had a problem with compiling ARC and nonARC (retain, release) files. The older DrEdit project was non ARC & would not compile with my newer ARC built file. This post fixed it - http://www.codeography.com/2011/10/10/making-arc-and-non-arc-play-nice.html Trick is to add
-fno-objc-arc
to the compile sources for each file that creates an error. Cludgey!
CoreLocation setup - iOS 8 requires a new means of setting up user location enabling in your app. This post explains everything in good detail - http://nevan.net/2014/09/core-location-manager-changes-in-ios-8/. Don't forget to add the new NSLocationWhenInUseUsageDescription
key into the pList.NSUserDefaults - This class is used to store app parameters & other values needed to be passed around to the various controllers. Here's a nice tutorial- http://www.idev101.com/code/Objective-C/Saving_Data/NSUserDefaults.html
Monday, December 29, 2014
Keyboard configuration
The following will hide a keyboard nicely;
// Hides a keyboard by use of an invisible button on view
// configure UIButton - Custom, no title & size over touch area
-(IBAction)hideButton:(UIButton *)sender
{
NSLog(@"Hides the keyboard");
[self.view endEditing:YES];
}
Here's another way that's less of a cludge;
It sets up a gesture for the view
1- Set the .h file to <UIGestureRecognizerDelegate>
2 - Add this to the viewDidLoad to set up the gestureRecognizer
// Tap to hide keyboard
UITapGestureRecognizer *hideKeyboardTap = [[UITapGestureRecognizer alloc] initWithTarget:self action:@selector(hideTap:)];
[self.view addGestureRecognizer:hideKeyboardTap];
Probably the BEST way;
1 - Don't forget to set the class as a UITextFieldDelegate
2- Add to viewDidLoad for all textFields - self.textField.delegate = self;
3 - And finally the delegate method
- (BOOL)textFieldShouldReturn:(UITextField *)textField
{
[textField resignFirstResponder];
return YES;
}
3 - Add this method
- (void)hideTap:(UIGestureRecognizer *)gestureRecognizer
{
[self.view endEditing:YES];
NSLog(@"Hides the keyboard");
}
// Hides a keyboard by use of an invisible button on view
// configure UIButton - Custom, no title & size over touch area
-(IBAction)hideButton:(UIButton *)sender
{
NSLog(@"Hides the keyboard");
[self.view endEditing:YES];
}
Here's another way that's less of a cludge;
It sets up a gesture for the view
1- Set the .h file to <UIGestureRecognizerDelegate>
2 - Add this to the viewDidLoad to set up the gestureRecognizer
// Tap to hide keyboard
UITapGestureRecognizer *hideKeyboardTap = [[UITapGestureRecognizer alloc] initWithTarget:self action:@selector(hideTap:)];
[self.view addGestureRecognizer:hideKeyboardTap];
Probably the BEST way;
1 - Don't forget to set the class as a UITextFieldDelegate
2- Add to viewDidLoad for all textFields - self.textField.delegate = self;
3 - And finally the delegate method
- (BOOL)textFieldShouldReturn:(UITextField *)textField
{
[textField resignFirstResponder];
return YES;
}
3 - Add this method
- (void)hideTap:(UIGestureRecognizer *)gestureRecognizer
{
[self.view endEditing:YES];
NSLog(@"Hides the keyboard");
}
Subscribe to:
Posts (Atom)