ios6

Constraints messing me up

萝らか妹 提交于 2019-12-25 03:03:11
问题 I have 5 buttons, aligned in the right side of the view. I have a method, that takes the frame of the sender (the button), creates a UIImageView with that frame, removes sender from superview and add the imageView at that location, and it works EXCEPT that those constraints mess me up. It seems like when i remove one of the buttons, it changes the size of all the others, and i cant explain why. I would love to simply just remove the auto-layout feature, but i would like to make the app for

Constraints messing me up

岁酱吖の 提交于 2019-12-25 03:01:57
问题 I have 5 buttons, aligned in the right side of the view. I have a method, that takes the frame of the sender (the button), creates a UIImageView with that frame, removes sender from superview and add the imageView at that location, and it works EXCEPT that those constraints mess me up. It seems like when i remove one of the buttons, it changes the size of all the others, and i cant explain why. I would love to simply just remove the auto-layout feature, but i would like to make the app for

Looking for ibooks html input alternative

有些话、适合烂在心里 提交于 2019-12-25 03:00:31
问题 In IOS5 on the iPad, iPad2 etc. iBooks accepted <input type="color"> as a way to prompt the keyboard to display when you clicked on an input field, to say, type in the answer to a question. I've just recently updated to IOS6, and this workaround no longer seems to be working. I tried using the JavaScript I found here - http://www.linkedin.com/groups/How-Show-iPads-Keyboard-when-3877009.S.84287009 <script type="text/javascript"> function iPadTouchHandler(event) { var type = "", button = 0; /

UISearchBar's scope button won't show up iOS6

拟墨画扇 提交于 2019-12-25 02:34:46
问题 I know this question was asked several times before, and it was solved(Before I was using that solution with iOS4 and 5). My recent project involves using UISearchBar with some other views, and I want to show it's scope buttons when it becomes active. Before, in UISearchBardelegate 's - (BOOL)searchBarShouldBeginEditing:(UISearchBar *)searchBar I was doing [searchBar setShowsScopeBar:YES]; [searchBar sizeToFit]; and it was showing scope buttons. But now, on iOS6 this code does nothing.

Build error when using iOS6 If Statement in xCode 5 Project

烈酒焚心 提交于 2019-12-25 02:18:48
问题 I am building a project in XCode 5 with Deployment Target 6.1 and SDK 7.0 but I am getting an error on this line: if (floor(NSFoundationVersionNumber) <= NSFoundationVersionNumber_iOS_6_1) { The error says *Use of undeclared identifier 'NSFoundationVersionNumber_iOS_6_1* 回答1: Your code should work in iOS7. Please cross check your Base SDK version once again. Project Target -->Build Settings -->Base SDk Its a part of Foundation.framework NSObjCRuntime.h class. So make sure you have the

Status bar height changes after playing a Youtube video

空扰寡人 提交于 2019-12-25 02:07:26
问题 I have this Web view that loads a list of videos in youtube. After I select and play any of this videos, the Web view is shifted 20 pixels up. I've printed values of status bar before and after playing the video and the height changes from 20 to 0, and this remains across all the app. This only happens with iOS 6, tested in iOS 5 and looks ok 回答1: Solved the problem, is very similar to this Modal dismissals do not account for status bar (new iOS 6 issue?) . I'm using a VC that is not

EWS Managed APIs in iOS

雨燕双飞 提交于 2019-12-25 01:55:12
问题 I'm developing an iOS app where it requires to use EWS managed APIs. I've searched the web thoroughly but I'm not getting any success. It requires to get and set user's profile information, i.e. User's display name, company name, phone number etc. 回答1: EWS Managed API is for Windows desktop apps only. You can use Exchange Web Service SOAP endpoint directly. Although it will be little tedious to handle xml based requests/responses but do-able. Take a look at this channel9 talk: Developing

Login issue in facebook integration

我的梦境 提交于 2019-12-25 01:37:07
问题 I have integrated facebook in ios 6 successfully but i noticed a strange behaviour of the app. Whenever i try to login using facebook everything works fine but when any other user with his/her credentials tries to login, an error shows up. I don't know what's the solution for it. i am using facebook sdk sample code as reference. For login i am just setting the view frame for login. The protocol implementation for FBLoginView is as follows: - (void)loginViewShowingLoggedInUser:(FBLoginView *

How can I correctly change the way a UITabBar appears using the appearance proxy?

余生长醉 提交于 2019-12-25 01:15:43
问题 Since I am developing an iOS >= 5.0 application, I am trying to change the appearance of the main UI components through the appearance proxies. When dealing with the UITabBar component, I correctly changed its tintColor to a light shade of gray trough the [[UITabBar appearance] setTintColor:] method. But doing this, the UITabBarItem s included in the bar are quite impossible to see, since they retain the old gray/white color in their title label. I tried to change their appearance through the

ios6 rotation problems

允我心安 提交于 2019-12-25 00:53:11
问题 I am converting my app to ios6 but i am getting rotation problems. Can some one help me which methods will be called when we rotate device 回答1: - (void)willAnimateRotationToInterfaceOrientation:(UIInterfaceOrientation) toInterfaceOrientation duration:(NSTimeInterval)duration { [self doLayoutForOrientation:toInterfaceOrientation]; } - (void)doLayoutForOrientation:(UIInterfaceOrientation)orientation { if (UIInterfaceOrientationIsPortrait(orientation)) { //set the frames here } else { //set the