ios5

Share Gif image on facebook in ios

╄→гoц情女王★ 提交于 2020-01-06 03:47:06
问题 how to share .gif image in Facebook from my ios app? i have tried png and jpg format it works . but when i share .gif file. it will just share as normal image not as an animated image. so if anybody had try it. please help me out to find solutions. 回答1: Source : Guide to Animated Gifs for Facebook If you try to upload a GIF to Facebook, a still image of the first frame will appear. However, there are three ways to try and outsmart the system. Make a Youtube video look like a GIF. Use a third

Associate Audio and Video Types with iPhone app

冷暖自知 提交于 2020-01-06 02:40:07
问题 I am trying to make an app that will receive media files from the Mail app by using Long Press > Open in "My app" I am having trouble associating the files types I want with my app. I am using the Uniform Type Identifiers Reference This is what my info.plist looks like: <key>CFBundleDocumentTypes</key> <array> <dict> <key>CFBundleTypeExtensions</key> <array> <string>mp3</string> </array> <key>CFBundleTypeName</key> <string>MP3 Audio</string> <key>CFBundleTypeRole</key> <string>Viewer</string>

UIMenuController with UITableViewController doesn't work

痴心易碎 提交于 2020-01-06 01:56:08
问题 I am trying to display UIMenuController when user selects any row in the table. I am using UITableViewController to display table with custom cell. my code:- - (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath { // [tableView deselectRowAtIndexPath:indexPath animated:NO]; MyCell *cell = (MyCell *)[tableView cellForRowAtIndexPath:indexPath]; CGRect cellFrame = cell.frame; [self.view becomeFirstResponder]; UIMenuItem *menuItem = [[UIMenuItem alloc]

UIMenuController with UITableViewController doesn't work

大城市里の小女人 提交于 2020-01-06 01:55:10
问题 I am trying to display UIMenuController when user selects any row in the table. I am using UITableViewController to display table with custom cell. my code:- - (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath { // [tableView deselectRowAtIndexPath:indexPath animated:NO]; MyCell *cell = (MyCell *)[tableView cellForRowAtIndexPath:indexPath]; CGRect cellFrame = cell.frame; [self.view becomeFirstResponder]; UIMenuItem *menuItem = [[UIMenuItem alloc]

How Logical operators work with constant operand in objective c

送分小仙女□ 提交于 2020-01-06 01:35:30
问题 I am working on project where I have the checkInternet method in one of my class for verifying internet availability. In that method I have following code: For below code of line I am getting warning that, "Using Logical && with constant operand" for this code of block (flag && kSCNetworkFlagsReachable) . BOOL isavailable = NO; Boolean success; isavailable = success && (flag && kSCNetworkFlagsReachable) && !(flag & kSCNetworkFlagsConnectionRequired); and as a solution xcode giving option that

Move rows to bottom in a TableView which uses CoreData

折月煮酒 提交于 2020-01-05 13:08:29
问题 In my app I have a folder-file (one-to-many relationship).So when I open my app, my firstViewController contains all files and when clicked on each folder, it opens a tableViewController displaying files in that folder. Now here whenever I swipe any row, it is moved to bottom row and the table is update accordingly, the next swiped row will go and sit above the first swiped row. Eg, at present if my table contains 0 1 2 3 A B C D After swiping A 0 1 2 3 B C D **A** after swiping B 0 1 2 3 C D

How to post local image with dialog text in facebook

这一生的挚爱 提交于 2020-01-05 12:40:56
问题 I have upload images with url image successful on this way NSMutableDictionary* params = [NSMutableDictionary dictionaryWithObjectsAndKeys: @"https://developers.facebook.com/docs/reference/dialogs/", @"link", @"http://fbrell.com/f8.jpg", @"picture", @"Facebook Dialogs", @"name", @"Reference Documentation", @"caption", @"Using Dialogs to interact with users.", @"description", nil]; AppDelegate *delegate = (AppDelegate *)[[UIApplication sharedApplication] delegate]; [[delegate facebook] dialog:

How to post local image with dialog text in facebook

℡╲_俬逩灬. 提交于 2020-01-05 12:40:53
问题 I have upload images with url image successful on this way NSMutableDictionary* params = [NSMutableDictionary dictionaryWithObjectsAndKeys: @"https://developers.facebook.com/docs/reference/dialogs/", @"link", @"http://fbrell.com/f8.jpg", @"picture", @"Facebook Dialogs", @"name", @"Reference Documentation", @"caption", @"Using Dialogs to interact with users.", @"description", nil]; AppDelegate *delegate = (AppDelegate *)[[UIApplication sharedApplication] delegate]; [[delegate facebook] dialog:

How to post local image with dialog text in facebook

岁酱吖の 提交于 2020-01-05 12:39:09
问题 I have upload images with url image successful on this way NSMutableDictionary* params = [NSMutableDictionary dictionaryWithObjectsAndKeys: @"https://developers.facebook.com/docs/reference/dialogs/", @"link", @"http://fbrell.com/f8.jpg", @"picture", @"Facebook Dialogs", @"name", @"Reference Documentation", @"caption", @"Using Dialogs to interact with users.", @"description", nil]; AppDelegate *delegate = (AppDelegate *)[[UIApplication sharedApplication] delegate]; [[delegate facebook] dialog:

What is the difference between self.variable and self->variable?

柔情痞子 提交于 2020-01-05 10:29:10
问题 I have seen accessing variable in iphone sdk with -> or . symbol.Which one is the best?what is the difference between self.variable and self->variable? 回答1: The dot-notation goes through the accessor, the arrow notation goes directly to the instance variable. Try this code: @interface Foo : NSObject @property(assign, nonatomic) NSInteger bar; @end @implementation Foo @synthesize bar; - (void) setBar: (NSInteger) newBar { NSLog(@"Setting new bar."); bar = newBar; } - (id) init { self = [super