ios6

iOS 6 EXC_BAD_ACCESS in SampleFTPSample code

倖福魔咒の 提交于 2019-12-06 06:31:40
问题 I run the SampleFTPSample source code (iOS6.0 SDK, Xcode4.5)which downloaded from iOS Developer Center. SampleFTPSample as the Images, when I retrieved a list from ftpServer, sometimes will get EXC_BAD_ACCESS error. I have not modified the code, I don't know why, and How can I fixed it? Thank you very much. 回答1: do this by setting the kCFStreamPropertyFTPAttemptPersistentConnection property to false, immediately after creating the stream (using CFReadStreamCreateWithFTPURL). Here's what that

different vertical alignment Font between ios6 and ios7

混江龙づ霸主 提交于 2019-12-06 06:26:11
问题 I have some problem with the vertical alignment Font between iOS6 and iOS7, I have a custom font that in iOS6 was a bit higher then a centre of vertical alignment in a UIButton , so have I done it? I've set the myButton.titleEdgeInsets = UIEdgeInsetsMake(6, 0, 0, 0) and I've fixed the issue, but now with the iOS7 have the opposite issue now with iOS7 the font is a bit lower...How i can fix this problem for have the same result in both iOS? Thanks in advance 来源: https://stackoverflow.com

How to get native Facebook login on iOS using SDK 3.1?

ⅰ亾dé卋堺 提交于 2019-12-06 06:20:32
问题 I downloaded the new Facebook iOS SDK 3.1, which promises to have a native login prompt. I ran their sample login app on my iOS 6 device. When I attempted to connect with Facebook, I did not get a native login. Instead, the Facebook app launched - same as the old SDK. Their Facebook login button basically does this: [appDelegate.session openWithCompletionHandler:^(FBSession *session, FBSessionState status, NSError *error) { [self updateView]; } ]; I thought maybe the sample code isn't calling

Creating image with in the frame of a rectangle placed on a UIImageview

蓝咒 提交于 2019-12-06 06:08:37
How to create a new image with specified frame in a UIView, the view contains imageviews and buttons also.I also need to get the image in the specified frame as a new image. I've tried this but it not correct. I need to crop from UIView and make it as a new UIImage. You need to import this framework in your project. #import <QuartzCore/QuartzCore.h> And use following code [imageView.layer setBorderColor: [[UIColor blackColor] CGColor]]; [imageView.layer setBorderWidth: 2.0]; // set border width as per your requirement. EDITED: Use any one which you need. For Get Crop Image: UIImage *croppedImg

Terminating with uncaught exception of type NSException (xcode 6)

故事扮演 提交于 2019-12-06 05:38:26
Terminating app due to uncaught exception: 'NSInternalInconsistencyException', reason: '-[UIViewController _loadViewFromNibNamed:bundle:] loaded the "ViewController" nib but the view outlet was not set. I am getting this error in xcode 6. I know how to set view outlet in xcode 5 or below version (go to connection inspector drag outlet radio button to file's Owner then it pop with a view and then click on view sets the outlet) but view popup is not comming in xcode 6 (beta). Is it a xcode 6 bug or it has different way to set an outlet. Can anyone help please? It means you have a view controller

iOS 6 Mono and backward compatibility

别来无恙 提交于 2019-12-06 05:36:51
问题 I'm updating my app to ios6 and i having following problems it is not possible to build application by architectures supported ARMv6 + ARM v7 but just only ARM v7 (the error is that iOS6 is not compatible with ARM v6). This means that my application will not work with all devices? building application with ARMv7 is not possible to use the flag LLVM ... (error MT3001) building application with SD 6 will also backward compatible with others iOS lower and all other devices (see question / error

iOS6 autorotation. TabBar->Navigation->Modal

拥有回忆 提交于 2019-12-06 05:33:07
I've read almost every answer about the new iOS6 autorotation stuff but I still can't manage to do what I want. I have a tabBar. One of the tabs is a NavigationView. When you turn the iPhone to landscape, a modalViewController is loaded. Everything works ok on iOS5 but I can't get the modal view to rotate on iOS6. I've tried subclassing the navigation controller, subclassing the tabbar controller and both!. No way. I'm now very confused. Which one is the responsible of rotating the modalview?. The tabbarController?, the navigationViewController?, the viewController who presented it?. I'd

iPod touch iOS6 - elements with large background images show up blank

孤街浪徒 提交于 2019-12-06 04:52:55
I've reproduced this on two separate iPod touch devices running iOS 6. iPhone does not seem to be affected, neither is iPad. I'm using a sprite file for images in my web application. I am now trying to provide retina support, so I have created a separate retina sprite file which is twice the dimensions of the low quality one. It seems like neither Chrome nor Safari like to display this. I'm doing the following: .img { background: url(xx-retina.png) no-resize top left; height: xx; width: xx; display: block } And in the body: <div class='img'/> The type of tag doesn't matter. The background

Presenting MFMessageComposeViewController broken in iOS 6

℡╲_俬逩灬. 提交于 2019-12-06 04:42:15
My app presents a MFMessageComposeViewController modally. It was working perfectly fine in iOS 5 (both on the simulator and on the device). After I upgraded my iPhone to 6, it simply doesn’t work anymore. The app freezes for like 10 seconds, then this message appears in the debugger "Remote compose controller timed out (YES)!" And the modal view does not show up. I searched extensively on stackoverflow and on the web, and couldn’t find any solution. As a final resort, I downloaded and ran the sample code of apple, "MessageComposer" and, alas, even in apple code it does not work on iOS 6. I`m

FacebookSDK presents login UI twice

萝らか妹 提交于 2019-12-06 04:39:16
问题 Using iOS 6 with the FacebookSDK splits the requests for read and publish permissions into two separate calls. I'm not sure why there's any benefit to this, but it seems to require presenting the user with the Facebook UI twice the first time thru. In my app, I don't request anything from Facebook until a user chooses to use Facebook, in which case they are first presented with the UI to get read permissions, then again to get publish permissions. Control switches from my app to facebook (for