ios6

TableViewCell displays incorrectly in iOS 6

孤者浪人 提交于 2019-12-06 04:36:27
I have an annoying problem with displaying UITableViewCell with UIActivityIndicatorView inside. My tableView delegate loads portions of data. The last cell always indicates loading process while new portion is not loaded. Loading starts in tableView: willDisplayCell: forRowAtIndexPath: .So in iOS 5 (or iOS 5 simulator) it works perfectly, but in iOS 6 (or iOS 6 simulator) UIActivityIndicatorView displays only for the first time. Maybe something was deprecated since iOS 6 or it's iOS 6 bug? Here is my dataSource: - (UITableViewCell*)tableView:(UITableView*)tableView cellForRowAtIndexPath:

ld: 871 duplicate symbols for architecture armv7, clang: error: linker command failed with exit code 1 (use -v to see invocation)

▼魔方 西西 提交于 2019-12-06 03:54:56
I am using FastPDFKit in my iPhone app for displaying PDF. When I run the project on simulator, it works fine. However when I run the project on iPhone, it gives me below error. duplicate symbol _value_map in: /Users/alkandari/Desktop/iPhone Apps/MyTest002/MyTest002/FastPdfKit.embeddedframework/FastPdfKit.framework/FastPdfKit(FastPdfKit) duplicate symbol _writeUnicodeToUTF8Buffer in: /Users/alkandari/Desktop/iPhone Apps/MyTest002/MyTest002/FastPdfKit.embeddedframework/FastPdfKit.framework/FastPdfKit(FastPdfKit) ld: 871 duplicate symbols for architecture armv7 clang: error: linker command

Where can I set a UINavigationControllers supportedOrientations?

天大地大妈咪最大 提交于 2019-12-06 03:48:21
问题 I am using iOS 6.0 beta and my rotations do not work anymore. Where can I set a UINavigationControllers supportedOrientations? According to this http://news.yahoo.com/apple-ios-6-beta-3-changes-182849903.html a UINavigation Controller does not consult their children to determine whether they should autorotate. I am not using shouldAutorotateToInterfaceOrientation: anymore as it is deprecated. Instead I am using supportedInterfaceOrientations: and shouldAutoRotate: and they are working fine

iPhone 5 Keyboard sizing

寵の児 提交于 2019-12-06 03:35:52
问题 I've been testing my app in the 4-inch and 3.5-inch iPhone simulators, and when bringing up a keyboard with a UITextField in the 4-inch simulator in landscape mode, it's squished up to the side. It looks like a normal 3.5-inch keyboard: Am I missing something telling it to stretch properly? Please note - I don't have access to an actual iPhone 5 device to test on. Any help would be appreciated. 回答1: Maybe your simulator is set to the 4-inch model but is running iOS5--this setup is possible in

How to play sound in iOS?

社会主义新天地 提交于 2019-12-06 03:22:00
I have found so many solutions here on stackoverflow, but for some reason all of them failed to produce any sound what so ever. Here is my current code: PRE: I've added AudioToolbox.framework and imported <AVFoundation/AVFoundation.h> in my .m file - (void)viewDidLoad { [super viewDidLoad]; NSURL* sndurl = [[NSBundle mainBundle] URLForResource:@"test" withExtension:@"aif"]; SystemSoundID snd; AudioServicesCreateSystemSoundID((__bridge CFURLRef)sndurl, &snd); AudioServicesAddSystemSoundCompletion(snd, nil, nil, SoundFinished, nil); AudioServicesPlaySystemSound(snd); } void SoundFinished

Phonegap not propagating the session cookie

馋奶兔 提交于 2019-12-06 03:04:30
问题 Using Phonegap-3.0.0 + ios6.1 , on a real iphone, on a real https domain handling the server side, many responses from different sources lead me to many trials and failures to deal with session cookies, I still cannot handle it correctly on an Iphone5+Phonegap app , although everything works perfectly in Iphone5+Safari . Sources of info & Understanding Cookies-in-PhoneGap. This suggest to use another transport mechanism to exchange the cookie between clients and server. Deal with the cookies

Is there a Google Maps equivalent to mkmapsnapshotter?

偶尔善良 提交于 2019-12-06 02:57:23
问题 I have a UITableView which may potentially contain a large number of cells, and in some cells I want a UIImageView showing a map of a location, the coordinates of which are known only at runtime. I want the table view to scroll smoothly and I want the maps in the cells to not be scrollable at all. I've been directed to avoid Apple Maps. Besides, MKMapSnapshotter is iOS 7 and up. I have to support iOS 6. So is Google Maps image API my best option? I'm already using the Google Maps iOS SDK

UIPickerView selectrow crash in iOS 6

﹥>﹥吖頭↗ 提交于 2019-12-06 02:43:57
My application build & run in iOS 5.x perfectly, but it crashes when I call selectRow:inComponent:animated: method of UIPickerView in iOS 6. code : [_pickerview selectRow:1 inComponent:0 animated:NO]; I know this method is not work in iOS6 when I googled it, but I want to know other method to do this effect? Your crash log says you have used a -1 in code where should be a number in range {0, 1}. But in the the code you paste you indeed use 1 . So you need to check your parameter for your xxx and yyy [_pickerview selectRow:xxx inComponent:yyy animated:NO]; The above answers are correct, However

iOS Facebook native login (without Facebook SDK)

痞子三分冷 提交于 2019-12-06 02:34:17
问题 I am trying to use native (iOS 6-7x) libraries to authorize a user with Facebook from my app. I would like to pass the auth token to my server when login is successful. The code below works fine except when the user has not set up their Facebook account in the OS. I get the following error in this case: Error Domain=com.apple.accounts Code=6 "The operation couldn’t be completed. (com.apple.accounts error 6.) -(void) initFacebookLogin { LRAppDelegate *appDelegate = [[UIApplication

How to set the width of an iframe in iOS6?

百般思念 提交于 2019-12-06 02:12:21
问题 I have an iframe that must be embedded on some websites and it is not well displayed on iPhones. This is because the width attribute (probably height as well) is ignored by mobile Safari. Is there any workaround? Thanks! 回答1: Although width is ignored, min-width isn't. So something like this has the same effect as width:100% : iframe { width: 1px; min-width: 100%; } 回答2: The width parameter of the iframe is ignored in mobile Safari so the width must be set in px with CSS. I fixed the problem