ios6

Xcode 4.5 + UIScrollView: Cannot see struts and springs (OSX 10.8 Mountain Lion)

纵饮孤独 提交于 2019-12-21 03:32:13
问题 Disclaimer: Brand new to iOS dev. Go easy on me. Got a funny situation in Xcode 4.5. My Size Inspector looks like this: ...and I can't see the struts and springs area at all . The really strange part is that when I click away to something like the Connections inspector I do see the struts and springs area, but only for a split second, and it is gone when I come back. Is this normal? Is there an easy way to correct this behavior? 回答1: In Xcode 4.5, for iOS 6 and OSX 10.8 development,

Can we lock the app while app goes to sleep mode in IPhone?

痞子三分冷 提交于 2019-12-21 03:02:32
问题 I am working an app where lock option is included.My app starts with passcode screen.If I enter correct code then it navigates to next screen.If I dont use the app for long time it goes to sleep mode.When the user wants to run the app now, the passcode screen should appear and the user has to enter the code again.Is it possible?Is there any tutorial for this?Please dont mind to post the related code if you have done it.Thanks in advance. 回答1: Yes ofcourse it is possible. You must open the

Is there a way to automatically scroll to the bottom of a UICollectionView

吃可爱长大的小学妹 提交于 2019-12-21 02:59:32
问题 So I'm currently working on a project that has a button that adds cells to a UICollectionView and then needs to automatically scroll to the last cell (i.e. the bottom of the UICollectionView). I've found the method scrollToItemAtIndexPath:(NSIndexPath *)indexPath atScrollPosition:(UICollectionViewScrollPosition)scrollPosition animated:(BOOL)animated But now I'm getting stuck at trying to find the indexPath of the last object in the CollectionView. The problem seems to lie in that I've been

Display List of Episodes from List of Podcasts

别等时光非礼了梦想. 提交于 2019-12-21 02:51:43
问题 I am trying to display a list of podcast channels by a particular author. When a podcast is selected, display the relevant episodes. I am able to do each independently, but can't figure out how to bridge the two. Right now my list of podcasts by author is generated using the iTunes App Store Search API. For example, you can request @"term" : @"twit", @"media" : @"podcast" and it will yield all the podcast channels by the author TWiT. It includes a lot of useful metadata via JSON, such as the

How to reload only data section of UICollectionView?

心不动则不痛 提交于 2019-12-21 02:40:41
问题 I'm trying to reload only data section, not header or footer (supplementary view), of UICollectionView. When I use reloadData method, header and footer section also reloads, so that's what I want. I found the method reloadSections: , but I don't know why it doesn't work. Because my collection view only contains one section, so I tried using the method like this: [collectionViewController.collectionView reloadSections:[NSIndexSet indexSetWithIndex:0]]; But it makes runtime error when the

Customizing subtitles with AVPlayer

早过忘川 提交于 2019-12-20 23:31:52
问题 I was able to display a subtitle track with AVPlayer on iOS 6, but I am not able to customize it. It just shows the same style (a small font size, in white). Here's how I select the subtitle: AVMediaSelectionGroup *subtitle = [asset mediaSelectionGroupForMediaCharacteristic: AVMediaCharacteristicLegible]; [self.videoPlayer.currentItem selectMediaOption:subtitle.options[0] inMediaSelectionGroup: subtitle]; And how I'm trying to customize the subtitle: AVTextStyleRule *rule = [[AVTextStyleRule

Wrong frame value while accessing the view from storyboard in IOS

筅森魡賤 提交于 2019-12-20 19:57:33
问题 I am accessing the size of the frame of view from storyboard. Below is my code for accessing frame property from storyboard. SmallView *smallView = [self.storyboard instantiateViewControllerWithIdentifier:@"SmallView"]; CGRect frame = smallView.view.frame; self.containerView.frame = frame; In story board the frame size of the view is (200,400). But when I am accessing the frame size from the code it's always giving (320,460).Why? In the above code I got small view object from storyboard so

How to add custom menu item to UITextView menu, which is a link to the Wikipedia page of the selected word?

有些话、适合烂在心里 提交于 2019-12-20 19:36:54
问题 I am new to Xcode, I am using version 4.6.3 - Macbook too old for the new version. I looked around the internet and Stack Overflow and cannot find what I want or I cannot get snippets to work. I would like to add a menu item to the menu items that appear when longpressing a word in a UITextView. I want it to say "Wiki" and when this is pressed, it will link to the wikipedia page of the word that is selected. It may be through Safari or should I do this within the app with a webview? I found:

How to lock down user to Single App mode in iOS 6, Programmatically?

为君一笑 提交于 2019-12-20 17:24:43
问题 There are some question which are related to this,. but getting the exact answer: Lock-down iPhone/iPod/iPad so it can only run one app Recently iOS 6 is introduced with some business oriented features, two of theme are: Guide Access Supervised Access These both deals with Accessibility Control features , Like allow user to restrict access to there device, only if they have full access to the device. In that way this is only useful to people, who owned the device like, a school use there

Strange animation on iOS 7 when using hidesBottomBarWhenPushed in app built targeting <= iOS 6

心不动则不痛 提交于 2019-12-20 16:26:08
问题 This problem comes when I build an app targeting iOS 5 or 6, but run it on iOS 7. If I have a controller in a navigationController that is a part of a tabBarController, and I do the following: controller.hidesBottomBarWhenPushed = YES; [self.navigationController pushViewController:testController animated:YES]; A strange vertical positioning animation occurs. I would instead like the new controller (with the bottom bar hidden) to push or pop on the navigation controller pushing the tab bar out