ios6

Lack of a close button on UIActivityViewController

吃可爱长大的小学妹 提交于 2019-12-14 03:55:59
问题 I am currently doing some updates for an iOS application. For the update I am going to take advantage of iOS6 capabilities. I am using a UIActivityViewController to get this done as well as some custom UIActivity activities. The main issue I am having is that there is no "Cancel" or "Close" button. The only way you can exit out of the activity view is if you either post something to a social network, or act like you are going to and then cancel. NSArray* dataToShare = [[NSArray alloc]

Bad receiver type UIRectEdge and Multiple methods named

空扰寡人 提交于 2019-12-14 03:28:01
问题 I recover this code from disk and try build it on xcode 5.0.2 for ios. In xcode 4 this code work but actually not: else { for (int i=0;i<pieceNumber;i++){ for (int j=0;j<pieceNumber;j++){ CGRect rect = CGRectMake( 0, 0, SHAPE_QUALITY*piceSize, SHAPE_QUALITY*piceSize); PieceView *piece = [[PieceView alloc] initWithFrame:rect]; piece.delegate = self; piece.image = [array objectAtIndex:j+pieceNumber*i]; piece.number = j+pieceNumber*i; piece.size = piceSize; piece.position = -1; NSNumber *n =

How to get Exif data from downloaded image

独自空忆成欢 提交于 2019-12-14 02:34:45
问题 In my application , I need to download the image from particular URL Link and assign that to UIImageView . I do not store that image to my Library, then in this case how can I get the Exif data of this image (like EXIF_TAG_CREATE_DATE , EXIF_TAG_ARTIST , etc) in my app? 回答1: try this NSError *error = nil; NSDictionary *attributes = [[NSFileManager defaultManager] attributesOfItemAtPath:@"imagePath" error:&error]; if (!error) { NSLog(@"file attributes : %@",attributes); } and this is the

x-axis labels in coreplot not displayed

拟墨画扇 提交于 2019-12-14 02:07:49
问题 I have attached the entire code which I am using but the x-axis label is not being generated .I have no clue where it is going wrong .I am a noob in core plot .PLease Help me out .Thanks in Advance and Happy New Year. #import "BarPlotViewController.h" @interface BarPlotViewController () @end @implementation BarPlotViewController #define BAR_POSITION @"POSITION" #define BAR_HEIGHT @"HEIGHT" #define COLOR @"COLOR" #define CATEGORY @"CATEGORY" #define AXIS_START 0 #define AXIS_END 50 //

Linkedin with OAuth2 ios [closed]

 ̄綄美尐妖づ 提交于 2019-12-14 00:49:40
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 4 years ago . I am developing an Iphone app in which i want to integrate it with linkedIn. I want user info in my app and i want to do it with oAuth 2.0. I tried to integration with oAuth 1.0, but i am having problems in callback. is there any sample or good tutorial available for linkedIn integration in iphone using oAuth 2

CIImage filter is stretching my image vertically

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-14 00:42:38
问题 I have an image which I'm using in a custom UITableViewCell . The image is a black triangle on a transparent background and I'm using a CIColorInvert filter to make it a white triangle on a transparent background. The filtered (inverted) image is being stretched vertically, how can I stop this from happening? If I load the UIImage directly without doing the filtering what I get is this: If I apply the CIFilter what I get is this: Here's my code: // create the white triangle CIImage

Getting the error :pointer being freed was not allocated *** set a breakpoint in malloc_error_break to debug

爱⌒轻易说出口 提交于 2019-12-14 00:23:41
问题 I am getting the below error : malloc: *** error for object 0xa68aca0: pointer being freed was not allocated *** set a breakpoint in malloc_error_break to debug I already set the Symbolic Breakpoint , But Nothing happen in console, Not getting any hint in console. I am using xcode 4.6 Any Help Appreciated. 回答1: You might be releasing the object too many times. Open up the debugger console by pressing Cmd+Shift+R. and then type in the following break malloc_error_break This will set a

iOS: Missing audio routes/sources in MPVolumeView

放肆的年华 提交于 2019-12-13 19:53:09
问题 I work on an audio app (using audio units). One of the requirements is to be able to change the audio route from the UI (Earpiece, Speaker, Connected Bluetooth device etc.). I use the MPVolumeView for this. Recently I have a bug with the list of routes that are displayed in the action sheet that is opened when tapping the route button in the volume view. I think that the problem appears only in iOS6, but not sure about that. The result is random: sometimes it displays only iPhone sometimes it

Enable x-Axis (Horizontal) scroll in coreplot

不问归期 提交于 2019-12-13 19:21:38
问题 I am using code from this link . And currently If I have 50 bar columns or 150 bar columns then the labels below is compressed and I would like to have horizontal scroll on x-Axis instead of having compressed x-Axis. I have tried this: plotSpace.xRange = CPTPlotRangeplotRangeWithLocation:CPTDecimalFromInt(-1)length:CPTDecimalFromInt(50)]; Attaching code from the file : #import "GraphView.h" @implementation GraphView - (void)generateData { NSMutableDictionary *dataTemp = [[NSMutableDictionary

do runloops/multi-threading/timers behave differently on iOS6?

跟風遠走 提交于 2019-12-13 18:21:35
问题 I just installed Xcode 4.5 to start testing some code on iOS6 devices.. I wanted my existing code to be runnable on both iOS 5 and iOS 6 obviously. The same code (below) that used to work on Xcode 4.3 stopped working on Xcode 4.5: -(BOOL)readFromRingBuffer { NSDate *fireDate = [NSDate dateWithTimeIntervalSinceNow:0]; ringBufferReaderTimer = [[NSTimer alloc] initWithFireDate:fireDate interval:0.25 target:self selector:@selector(readRingBufferDataBit) userInfo:NULL repeats:YES]; NSRunLoop