<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Asset Libraries and Blocks in iOS 4</title>
	<atom:link href="http://www.icodeblog.com/2010/07/08/asset-libraries-and-blocks-in-ios-4/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.icodeblog.com/2010/07/08/asset-libraries-and-blocks-in-ios-4/</link>
	<description>Conquering the mobile universe</description>
	<lastBuildDate>Fri, 10 Feb 2012 21:48:00 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
	<item>
		<title>By: Aatish_molasi</title>
		<link>http://www.icodeblog.com/2010/07/08/asset-libraries-and-blocks-in-ios-4/#comment-9197</link>
		<dc:creator>Aatish_molasi</dc:creator>
		<pubDate>Wed, 08 Feb 2012 12:40:00 +0000</pubDate>
		<guid isPermaLink="false">http://icodeblog.com/?p=2068#comment-9197</guid>
		<description>ermm its not showing me any images .. 

i do have some images that i have downloaded but its giving me the group as nil .. :/</description>
		<content:encoded><![CDATA[<p>ermm its not showing me any images .. </p>
<p>i do have some images that i have downloaded but its giving me the group as nil .. :/</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jeswanth</title>
		<link>http://www.icodeblog.com/2010/07/08/asset-libraries-and-blocks-in-ios-4/#comment-8768</link>
		<dc:creator>Jeswanth</dc:creator>
		<pubDate>Mon, 14 Nov 2011 15:08:00 +0000</pubDate>
		<guid isPermaLink="false">http://icodeblog.com/?p=2068#comment-8768</guid>
		<description>Thank you very much for this tutorial. Â while we are getting photos from photo library is there any way to get its time info of which it is saved .</description>
		<content:encoded><![CDATA[<p>Thank you very much for this tutorial. Â while we are getting photos from photo library is there any way to get its time info of which it is saved .</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ashish</title>
		<link>http://www.icodeblog.com/2010/07/08/asset-libraries-and-blocks-in-ios-4/#comment-8592</link>
		<dc:creator>Ashish</dc:creator>
		<pubDate>Fri, 04 Nov 2011 08:40:00 +0000</pubDate>
		<guid isPermaLink="false">http://icodeblog.com/?p=2068#comment-8592</guid>
		<description>great it works fine..

but is there anyways i can use something like this

asset which holds my current image. so in order to access image URL, i go like this.

NSData *assetData = [NSData dataWithContentsOfURL:asset.defaultRepresentation.url];
// img is my imageview
	img.image = [UIImage imageWithData:[NSData dataWithContentsOfURL:asset.defaultRepresentation.url]];

	
	//NSLog(@&quot;Asset Data = %@&quot;,assetData);when i check the log i get (null)can you help me figure out why i&#039;m not able to load image with the given URL. some people say this feature was available in IOS 4.0 and now in 5.0 not possible.</description>
		<content:encoded><![CDATA[<p>great it works fine..</p>
<p>but is there anyways i can use something like this</p>
<p>asset which holds my current image. so in order to access image URL, i go like this.</p>
<p>NSData *assetData = [NSData dataWithContentsOfURL:asset.defaultRepresentation.url];<br />
// img is my imageview<br />
	img.image = [UIImage imageWithData:[NSData dataWithContentsOfURL:asset.defaultRepresentation.url]];</p>
<p>	//NSLog(@&#8221;Asset Data = %@&#8221;,assetData);when i check the log i get (null)can you help me figure out why i&#8217;m not able to load image with the given URL. some people say this feature was available in IOS 4.0 and now in 5.0 not possible.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Foren</title>
		<link>http://www.icodeblog.com/2010/07/08/asset-libraries-and-blocks-in-ios-4/#comment-8412</link>
		<dc:creator>Foren</dc:creator>
		<pubDate>Tue, 25 Oct 2011 18:13:00 +0000</pubDate>
		<guid isPermaLink="false">http://icodeblog.com/?p=2068#comment-8412</guid>
		<description>Thanks a lot for posting this.Â  Where is the link to the sample project?</description>
		<content:encoded><![CDATA[<p>Thanks a lot for posting this.Â  Where is the link to the sample project?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Bao Nhan</title>
		<link>http://www.icodeblog.com/2010/07/08/asset-libraries-and-blocks-in-ios-4/#comment-8360</link>
		<dc:creator>Bao Nhan</dc:creator>
		<pubDate>Sat, 22 Oct 2011 14:00:00 +0000</pubDate>
		<guid isPermaLink="false">http://icodeblog.com/?p=2068#comment-8360</guid>
		<description>Thanks for your tutorial!Â </description>
		<content:encoded><![CDATA[<p>Thanks for your tutorial!Â </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mithun Dhali</title>
		<link>http://www.icodeblog.com/2010/07/08/asset-libraries-and-blocks-in-ios-4/#comment-7096</link>
		<dc:creator>Mithun Dhali</dc:creator>
		<pubDate>Sat, 09 Jul 2011 05:40:00 +0000</pubDate>
		<guid isPermaLink="false">http://icodeblog.com/?p=2068#comment-7096</guid>
		<description>I also had this problem which was solved after removing the struct keyword.

- Â  Â void (^assetEnumerator)(structÂ ALAsset *, NSUInteger, BOOL *) = ^(ALAsset *result, NSUInteger index, BOOL *stop) {};+ Â  Â void (^assetEnumerator)(ALAsset *, NSUInteger, BOOL *) = ^(ALAsset *result, NSUInteger index, BOOL *stop) {};

If i keep the struct keyword i get an error.
file://../BaseViewController.m: error: Semantic Issue: Incompatible block pointer types initializing &#039;void (^)(struct ALAsset *, NSUInteger, BOOL *)&#039; with an expression of type &#039;void (^)(ALAsset *, NSUInteger, BOOL *)&#039;

</description>
		<content:encoded><![CDATA[<p>I also had this problem which was solved after removing the struct keyword.</p>
<p>- Â  Â void (^assetEnumerator)(structÂ ALAsset *, NSUInteger, BOOL *) = ^(ALAsset *result, NSUInteger index, BOOL *stop) {};+ Â  Â void (^assetEnumerator)(ALAsset *, NSUInteger, BOOL *) = ^(ALAsset *result, NSUInteger index, BOOL *stop) {};</p>
<p>If i keep the struct keyword i get an error.<br />
file://../BaseViewController.m: error: Semantic Issue: Incompatible block pointer types initializing &#8216;void (^)(struct ALAsset *, NSUInteger, BOOL *)&#8217; with an expression of type &#8216;void (^)(ALAsset *, NSUInteger, BOOL *)&#8217;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Stefan</title>
		<link>http://www.icodeblog.com/2010/07/08/asset-libraries-and-blocks-in-ios-4/#comment-6995</link>
		<dc:creator>Stefan</dc:creator>
		<pubDate>Tue, 28 Jun 2011 07:13:00 +0000</pubDate>
		<guid isPermaLink="false">http://icodeblog.com/?p=2068#comment-6995</guid>
		<description>Hi,

why you don&#039;t add the sample project to download?

Thanks and greetings,
Stefan</description>
		<content:encoded><![CDATA[<p>Hi,</p>
<p>why you don&#8217;t add the sample project to download?</p>
<p>Thanks and greetings,<br />
Stefan</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Nigel Berkeley</title>
		<link>http://www.icodeblog.com/2010/07/08/asset-libraries-and-blocks-in-ios-4/#comment-6719</link>
		<dc:creator>Nigel Berkeley</dc:creator>
		<pubDate>Mon, 13 Jun 2011 12:06:00 +0000</pubDate>
		<guid isPermaLink="false">http://icodeblog.com/?p=2068#comment-6719</guid>
		<description>Hi Colin. Thank you very much for this tutorial.Â 

Just wanted to point out that we had Â some major problems getting Xcode 4.0.2 to accept the block syntax you provided. Â Finally managed to hunt down some other examples and got the following syntax to work:ALAssetsGroupEnumerationResultsBlock assetEnumerator = ^(ALAsset *result, NSUInteger index, BOOL *stop) { Â Â Â 
Â  Â  Â  Â  Â  Â Â 
};</description>
		<content:encoded><![CDATA[<p>Hi Colin. Thank you very much for this tutorial.Â </p>
<p>Just wanted to point out that we had Â some major problems getting Xcode 4.0.2 to accept the block syntax you provided. Â Finally managed to hunt down some other examples and got the following syntax to work:ALAssetsGroupEnumerationResultsBlock assetEnumerator = ^(ALAsset *result, NSUInteger index, BOOL *stop) { Â Â Â <br />
Â  Â  Â  Â  Â  Â Â <br />
};</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Chintan_cjd</title>
		<link>http://www.icodeblog.com/2010/07/08/asset-libraries-and-blocks-in-ios-4/#comment-6612</link>
		<dc:creator>Chintan_cjd</dc:creator>
		<pubDate>Tue, 31 May 2011 06:06:00 +0000</pubDate>
		<guid isPermaLink="false">http://icodeblog.com/?p=2068#comment-6612</guid>
		<description>- (void) imagePickerController:(UIImagePickerController *)picker didFinishPickingMediaWithInfo(NSDictionary *)info{
Â Â  Â // Access the uncropped image from info dictionary
Â Â  Â UIImage *image = [info objectForKey:@&quot;UIImagePickerControllerOriginalImage&quot;];
Â Â  Â 
Â Â  Â // Save image
Â Â  Â UIImageWriteToSavedPhotosAlbum(image, self, @selector(image:didFinishSavingWithError:contextInfo:), nil);
Â Â  Â 
Â Â  Â [picker release];
Â Â  Â 
}</description>
		<content:encoded><![CDATA[<p>- (void) imagePickerController:(UIImagePickerController *)picker didFinishPickingMediaWithInfo(NSDictionary *)info{<br />
Â Â  Â // Access the uncropped image from info dictionary<br />
Â Â  Â UIImage *image = [info objectForKey:@"UIImagePickerControllerOriginalImage"];<br />
Â Â  Â <br />
Â Â  Â // Save image<br />
Â Â  Â UIImageWriteToSavedPhotosAlbum(image, self, @selector(image:didFinishSavingWithError:contextInfo:), nil);<br />
Â Â  Â <br />
Â Â  Â [picker release];<br />
Â Â  Â <br />
}</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Chintan_cjd</title>
		<link>http://www.icodeblog.com/2010/07/08/asset-libraries-and-blocks-in-ios-4/#comment-6611</link>
		<dc:creator>Chintan_cjd</dc:creator>
		<pubDate>Tue, 31 May 2011 06:04:00 +0000</pubDate>
		<guid isPermaLink="false">http://icodeblog.com/?p=2068#comment-6611</guid>
		<description>Hi..Have you saved that photo clicked by you to gallary??</description>
		<content:encoded><![CDATA[<p>Hi..Have you saved that photo clicked by you to gallary??</p>
]]></content:encoded>
	</item>
</channel>
</rss>

