ios6

Thread 1: EXC_BREAKPOINT (code=EXC_i386_BPT, subcode=0x0) error

情到浓时终转凉″ 提交于 2020-01-12 14:20:08
问题 I have an iPad app I am making, but it crashes on startup even though there are no errors or warnings, the output doesn't output anything besides "(lldb)", and it marks a pointer. This is the image of the post build crash. And here is the code: - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions { /* UIImage *myImage = [UIImage imageNamed:@"de_dust2.png"]; myImageView = [[UIImageView alloc] initWithImage:myImage]; myScrollView

SDK 3.1: How to tell whether SDK is using iOS6 accounts or not?

佐手、 提交于 2020-01-12 07:27:11
问题 If I have a Facebook account set up in iOS6 but the user has switched it off, the SDK just gives me a FBSessionStateClosedLoginFailed status. From that, I can't tell if the user has switched us off in iOS (case 1) or doesn't have an account set up in iOS and declined permission from the FB app or web app (case 2). The error messages I need to present are quite different in the two cases. In the first case, we need to tell the user how to switch us back on, but those instructions would be

What works in viewDidUnload should be moved to didReceiveMemoryWarning?

本小妞迷上赌 提交于 2020-01-12 05:39:16
问题 In new iOS 6, viewDidUnload is deprecated and we have been instructed to use didReceiveMemoryWarning instead, to manage objects in UIViewController instances and subclasses. Is it equally effective to assign nils to UIView kinds inside didReceiveMemoryWarning like the way it has been done inside viewDidUnload ? I am asking this because these two methods seems to be working differently. It seems like didReceiveMemoryWarning doesn't guarantee viewDidLoad to be called again to re-instantiate any

iOS 7 status bar translucency with backwards compatibility

断了今生、忘了曾经 提交于 2020-01-12 03:21:06
问题 I built my app to have a translucent navbar in iOS 6. I'd like to utilize the translucent status bar in iOS 7 and keep the app as is in iOS 6, but my content is always underneath the status bar in iOS 7, with 20px missing on the bottom. I figure that I can make the very tedious code changes that check whether the device has iOS 7 and then adjust my content accordingly, but I fear that this is going to be a lot of work. Ideally, I'd like to add 20px of padding to the top of every view

UIButton not calling action in iOS 5 but works in iOS 6

孤者浪人 提交于 2020-01-12 02:43:13
问题 I have a UIButton that is loaded from a xib file as an IBOutlet property of a view controller. I attach a selector to the button in the viewDidLoad of my view controller: [_myButton addTarget:self action:@selector(mySelector) forControlEvents:UIControlEventTouchUpInside]; In iOS 6 everything works, but when i run on the simulator in iOS 5.0 the selector doesn't get called. The button does highlight when it is touched. Another thing to note is that the button is in a UIView that has a

UIButton not calling action in iOS 5 but works in iOS 6

China☆狼群 提交于 2020-01-12 02:43:05
问题 I have a UIButton that is loaded from a xib file as an IBOutlet property of a view controller. I attach a selector to the button in the viewDidLoad of my view controller: [_myButton addTarget:self action:@selector(mySelector) forControlEvents:UIControlEventTouchUpInside]; In iOS 6 everything works, but when i run on the simulator in iOS 5.0 the selector doesn't get called. The button does highlight when it is touched. Another thing to note is that the button is in a UIView that has a

iOS6 Preferred Interface Orientation Not Working

情到浓时终转凉″ 提交于 2020-01-11 12:51:11
问题 I'm trying to work with the iOS6 Auto-rotation mess. I've looked at almost every single SO question relating to it, and no matter what I try, I can't get rotation working how I need it. The app is using storyboards, and the layout is as follows: Navigation controller ---> Root view controller ---> Tab view controller ---> View controller ---> Landscape view controller. The view controller auto-rotates when I rotate the simulator, but when segueing back to the previous view (that is set to

How to get the cell.label.text values from a selected row of UITableview?

折月煮酒 提交于 2020-01-11 10:48:57
问题 I am new in iOS application Development and i need help on UItableview. As i am populating the table-view with json data.I am also Using Customized Tableviewcell also. I am not getting the "huid" value of selected cell on "lbluid". The "lbluid" is showing value of "huid" according to scroll as i will scroll up it will show the "huid" value of upper most visible cell of the UITableview and if i scroll down it will show the "huid" value of last visible cell from down. - (UITableViewCell *

iOS 6 Facebook Login not refreshing access token

我与影子孤独终老i 提交于 2020-01-11 06:27:33
问题 Nothing I'm reading (many FB dev articles and SO question) is helping, so I thought I'd post here. I'm trying to get this all to work with iOS 6 and Facebook SDK 3.1.1. I've got a pretty basic setup: My iOS app authenticates with Facebook, I pass the access_token to my server and the user is now logged into my app. The only other thing they can do related to facebook is post something to their wall. I'm using the legacy Dialog window so the user can add their own comments. Everything works

Access the UIPageControl created by iOS6 UIPageViewController?

≯℡__Kan透↙ 提交于 2020-01-11 05:04:49
问题 I'm using a UIPageViewController with Navigation set to Horizontal, Transition Style set to Scroll (in InterfaceBuilder), and no spine. Which gives me a lovely UIPageControl integrated. Now I want to be able to toggle whether it's displaying (because there's artwork underneath it). I've tried setting presentationCountForPageViewController and presentationIndexForPageViewController to return 0 when the UIPageControl is supposed to be hidden, but those methods aren't being called when I want.