ios6

ios 6 uiwebview shows background while scrolling a page using jquery scrolltop

倖福魔咒の 提交于 2019-12-24 00:31:38
问题 I have a web page being displayed in a UIWebView that uses jquery scrollTop (using 1.6.4 version of jquery) to scroll the window to a speicified position after the page is loaded. This was working fine with xcode older than 4.5. After I built it using xcode 4.5 the page momentarily shows the background of the UIWebView before scrolling. This happens only in ios6. Has anyone encountered any similar issue with xcode 4.5 and ios6? Is there any new API for UIWebview that I can use to stop this

iOS Simulator black background

ⅰ亾dé卋堺 提交于 2019-12-24 00:25:58
问题 iOS Simulator black background look depressing especially with my app icon sit on its own with black background. How can I insert background image or set my own colour of my choice? You can do that on mac or PC with your own background. Is there a way for iOS Simulator ? align top http://www.kerrydeaf.com/ios6.png 回答1: Go into the iOs-Simulator package, in contents/resources you will find frame.png which you can change. 来源: https://stackoverflow.com/questions/13313020/ios-simulator-black

How to make a view float over a scroll view using autolayout

冷暖自知 提交于 2019-12-23 22:41:20
问题 In the iOS 6.0 Release notes there is the following statement: Note that you can make a subview of the scroll view appear to float (not scroll) over the other scrolling content by creating constraints between the view and a view outside the scroll view’s subtree, such as the scroll view’s superview. Anyone have any ideas? 回答1: I did some playing around and I have a working example of sorts. The view does not scroll, it gets put at the top, with a height that is the difference between the

EKEvents/EKReminders set but are not displaying on calendar

你说的曾经没有我的故事 提交于 2019-12-23 21:05:46
问题 I am setting events to calendar. The code works throughly but wen I check if the event r set on my device's calendar. It doesnt show anything. I am doing this in ios6, when I do it for ios5, it works fine. 回答1: This worked for me, you can try the same. I had to navigate from one page to another, so posting the link to the two pages. First -> https://discussions.apple.com/message/16497282#16497282 Then, from there to -> https://discussions.apple.com/message/16479587#16479587 I had to go into

Apps that read or write data outside its designated container area will be rejected

百般思念 提交于 2019-12-23 20:21:14
问题 I am developing an app that sends data from the app to an sql server. I have read in the App Store guidelines (point 2.6) that "Apps that read or write data outside its designated container area will be rejected". Does that mean I will not be able to do this? 回答1: I'm pretty sure they're just referring to the designated "sandbox" each app is assigned to. Each app has their own documents directory to save local files, and I believe they're just warning you not to attempt to write outside of

Dot syntax vs square brackets when setting background color in collection view

微笑、不失礼 提交于 2019-12-23 20:07:12
问题 I'm still learning IOS SDK so hopefully this makes sense. I am still trying to wrap my head around using dot syntax. Could some one explain why this code doesn't work but the second one does? Not working: -(void)collectionView:(UICollectionView *)collectionView didDeselectItemAtIndexPath:(NSIndexPath *)indexPath { UICollectionView *cell = [collectionView cellForItemAtIndexPath:indexPath]; [[cell contentView] setBackgroundColor:[UIColor blueColor]]; } Working: -(void)collectionView:

Catching NS_AVAILABLE_IOS while coding

不想你离开。 提交于 2019-12-23 18:46:53
问题 I know how to change the lowest OS supported with IPHONEOS_DEPLOYMENT_TARGET . I am currently developing under Xcode 4.5 and using the iOS 6.0 SDK. What I'd like to do is find a way to throw a warning in compilation whenever I use code that is marked: NS_AVAILABLE_IOS(6_0) So that I can make sure that I don't miss any "Yes, but you're on iOS 5 so don't use this code" areas that will crash the user's device. 回答1: NS_AVAILABLE_IOS(6_0) is defined as __attribute((unavailable)) when the SDK is

Attaching a image to an email in an app in ipad in ios6

痞子三分冷 提交于 2019-12-23 17:32:15
问题 I am trying to attach images to the email and send the email to my email add. The problem is that when i send out an email with 4 or 5 images attached, the app keeps processing for ever and eventually gets hanged and crashes and doesn't send the email. It is working fine with one image. I am thinking it is because of the size of the images combined together. Btw, I am using iOS 6.. How do i restrict the size of the files or images sent? Or there might be other issues involved? The same app is

ios 6 Incorrect modal view size after rotation

五迷三道 提交于 2019-12-23 17:13:51
问题 We have an ipad application, that supports landsace right and left orientation. - (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation { // Overriden to allow any orientation. return (interfaceOrientation == UIInterfaceOrientationLandscapeLeft || interfaceOrientation == UIInterfaceOrientationLandscapeRight); } We are showing view controllers as modal view by calling childController.modalPresentationStyle = UIModalPresentationPageSheet; childController

When are XIB outlet properties set?

↘锁芯ラ 提交于 2019-12-23 13:58:37
问题 I'm trying to implement inheritance with xib files. Yes, a little strange, but let me tell you why. I have a class, SLBaseViewController that many of my view controllers inherit from. When I want a child view controller I create it in the usual way: SLHomeViewController *controller = [[SLHomeViewController alloc] initWithNibName:@"SLHomeViewController" bundle:nil]; This works fine. SLHomeViewController is an SLBaseViewController (which is a UIViewController). I'm doing this because I have