ios7

Xcode 6 Beta not compiling

烈酒焚心 提交于 2019-12-29 06:44:29
问题 I've got the following problem: I've written my first Swift App (for iOS7) and it worked fine. After changing some minor detail (adding a string somewhere) it wouldn't compile anymore, even if I changed everything back how it was before. There is no error message or anything like it, it says that it's building the project (Compiling Swift Source Files) but it's not progressing at all, even after hours of "building". I've tried it with Xcode 6 b1 and b2 and with both it's the same: all the

how to get iPhone App Crash Log file from iPhone programmatically

我怕爱的太早我们不能终老 提交于 2019-12-29 06:32:54
问题 Is there a way to access iphone crash log file via programmatically. I trying to write a crash report feature that when you launch the app after a crash, it will offer to send the crash report to the server. I can't find how to get the crash log within the app. 回答1: You can use the following logic for the same. aslmsg q, m; int i; const char *key, *val; float how_old = fTime ; q = asl_new(ASL_TYPE_QUERY); asl_set_query(q, ASL_KEY_LEVEL, strLoggerLevel ,ASL_QUERY_OP_LESS_EQUAL); asl_set_query

NSCache crashing when memory limit is reached (only on iOS 7)

怎甘沉沦 提交于 2019-12-29 06:18:14
问题 We are using NSCache for UIImages in our app. This works fine on iOS versions smaller than 7. When a memory warning occurs, NSCache releases objects as intended. However, on iOS 7, our app crashes shortly after the first memory warning. So it seems as if objects stored with NSCache are never released but the cache is growing until the app is crashing. Profiling with instruments confirms this suspicion. Did somebody else experience this problem and did you find a workaround or already track a

Lines missing from tall UILabel when embedding NSTextAttachment

佐手、 提交于 2019-12-29 05:47:09
问题 I can create a multi-line NSAttributedString by using escaped new-line characters ( @"\n" ). With iOS 7, I can now embed a UIImage inside attributed strings (via NSTextAttachment ). I have noticed that whenever I set the attributedText of a UILabel to a multi-line attributed string with an embedded image, the number of lines actually displayed is inversely proportional to the height of the label. For example, when the height of the label is 80, two lines appear; when the height is around 100,

iOS7 tableview cell.imageview extra padding?

淺唱寂寞╮ 提交于 2019-12-29 05:33:08
问题 I have a tableview which renders perfectly in iOS 6 & has done so for years. In iO7 in the same tableview either side of the cell.imageview its adding some extra padding approx 5mm either side of each image shown below thus moving my cell.textLabel.text further to the right. How would I remove this I cant seem to find the answer anywhere to this question? 回答1: In iOS7, the UITableViewCell 's predefined property imageView is indented towards right by 15pt by default. And this has nothing to do

iOS7 - Setting selectedIndex of UITabBarController breaks touch events along right-hand edge of screen?

我只是一个虾纸丫 提交于 2019-12-29 05:13:13
问题 I've hit a weird problem with UITabBarController on iOS7 and can't seem to find a workaround, so any help would be welcome! Scenario: Navigation-based app using landscape orientation on iPad. App consists of a main view, and a second view which is a UITabBarController. TabBarController has two tabs. First view has two buttons - each button performs a segue to the tab bar controller and sets a different tab as selected. (i.e. button1 selects the first tab, and button2 selects the second tab).

Viewing the console log in iOS7

两盒软妹~` 提交于 2019-12-29 04:14:46
问题 Prior to iOS7, if I wanted to view the output log of an app running on an iOS device, I would use one of: https://itunes.apple.com/au/app/system-console/id431158981?mt=8 https://itunes.apple.com/au/app/console/id317676250?mt=8 However, since upgrading to iOS7, both of these don't seem to be recording the log output of any app on my phone. Would this be due to a new setting on my phone? Or has iOS7 changed the way in which logging is handled such that these two apps are now broken? 回答1: We're

Viewing the console log in iOS7

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-29 04:14:11
问题 Prior to iOS7, if I wanted to view the output log of an app running on an iOS device, I would use one of: https://itunes.apple.com/au/app/system-console/id431158981?mt=8 https://itunes.apple.com/au/app/console/id317676250?mt=8 However, since upgrading to iOS7, both of these don't seem to be recording the log output of any app on my phone. Would this be due to a new setting on my phone? Or has iOS7 changed the way in which logging is handled such that these two apps are now broken? 回答1: We're

Resize UItextview according to it's content in iOS7

夙愿已清 提交于 2019-12-29 04:02:29
问题 I'm trying to resize a text view according to content & also it's sibling and parent container. Below code is working fine in iOS 6 if (/* less than ios 7 */) { CGRect frame = _textView.frame; CGSize conSize = _textView.contentSize; CGFloat difference = conSize.height - frame.size.height; frame.size.height += difference; _textView.frame = frame; UIScrollView *parentView = (UIScrollView *)_textView.superview; // adjust views residing below this text view. // sibling view UIView *belowView = //

Transition to iOS 7: correct viewport setting for jQuery/iPhone Webapps viewed on iPads

偶尔善良 提交于 2019-12-29 03:35:51
问题 We have an app with essentially one UIWebView which is set to "iPhone App" in XCode. Until now all worked fine, but using the iOS 7 iPad Simulator the App now appears in "Full Screen" immediately, which would not be the problem, but the WebView also appears to be zoomed in. I only see the upper right 1/4 of the website thats loaded and have to scroll to see the rest. We use jQuery mobile 1.3.1 in the application. edit I found the error. It seems the semantics of the viewport meta-element