ios-4.2

How can i zoom in and out in a UIImageView without UIScrollView?

北城以北 提交于 2019-12-21 04:38:12
问题 I'm developing an app for iOS 4.2, iPhone, in this app I download images and I save them in the internal storage (NSDocuments). Well, then I show the first image in a UIImageView. The user can drag their finger on the UIImageView (TouchesMoved), when the user do that, I load other image. If the user drag down, I load one image, if drag up, i load other, and also with right and left. This is all done. But I want to implement zooming. This is my code until now: initialDistance --> is the

Xcode with SDK 4.2 always starting iPad Simulator

 ̄綄美尐妖づ 提交于 2019-12-21 04:16:36
问题 Why does Xcode, after updating to SDK 4.2, always run my application in iPad Simulator instead of iPhone??? If I select iPhone Simulator as active executable it doesn't store my preference and runs the iPad simulator after any new Build & Run. 回答1: I had the same Problem. But suddenly after an Update it disappeared. Do you have the newest Version of all Software( or tried turning it off and on again)? If that doesn't works, I would suggest a reinstall. Solved many of my Problems... 回答2: On

what does this mean clone the GitHub repository?

扶醉桌前 提交于 2019-12-20 09:15:26
问题 I am trying to use facebook with my app. I read this on developer.facebook.com Install XCode Install Git Clone the GitHub repository: git clone git://github.com/facebook/facebook-ios-sdk.git i have installed XCode and Git. What does it mean to Clone the GitHub repository: git clone git://github.com/facebook/facebook-ios-sdk.git and how can i do that. 回答1: To clone a repository means that you will download the whole code of the repository. Obviously, your are on a Mac, so launch your Terminal,

Push Notification is not working?

我的梦境 提交于 2019-12-19 09:23:35
问题 i edit and modify the provisioning profile alot of times. and i checked it in text editor too. everything is ok with provisioning profile. but still push notifications are not working. and i m getting this error. everyone is saying that its bcz of bad provisioning profile but my provisioning profile values are the same as Apple said in their documentation. i m getting this error: Error in registration. Error: Error Domain=NSCocoaErrorDomain Code=3000 "no valid 'aps-environment' entitlement

Getting warning in iPhone: NSString may not respond to '-JSONValue'

不问归期 提交于 2019-12-19 06:23:35
问题 In my iPhone app, I am making an access to the webserver to fetch the data. Here I am using JSON to retrieve the data from database. I get a warning that says: NSString may not respond to '-JSONValue' How to resolve it? 回答1: Add this #import "JSON.h" at the top of your .m or .h file. 回答2: Have you tried to add JSON Library to your project and import it #import "JSON/JSON.h" 回答3: You probably just miss the include to your JSON library 来源: https://stackoverflow.com/questions/4669061/getting

Getting warning in iPhone: NSString may not respond to '-JSONValue'

ぐ巨炮叔叔 提交于 2019-12-19 06:22:13
问题 In my iPhone app, I am making an access to the webserver to fetch the data. Here I am using JSON to retrieve the data from database. I get a warning that says: NSString may not respond to '-JSONValue' How to resolve it? 回答1: Add this #import "JSON.h" at the top of your .m or .h file. 回答2: Have you tried to add JSON Library to your project and import it #import "JSON/JSON.h" 回答3: You probably just miss the include to your JSON library 来源: https://stackoverflow.com/questions/4669061/getting

Issue with Map Annotation and MKMapView in iOS 4.2?

99封情书 提交于 2019-12-18 08:58:18
问题 I have a map view with pins that when the user selects a pin it goes to a detail screen for that pin. I also have a table view that when the user selects an item it goes to the same type detail view. Here's the problem ... It seems to work fine in everything from 3.1.3 to 4.1. That is the detail view matches with the pin. But I have a user who just upgraded to iOS 4.2 and says that under 4.1 it worked fine, but in 4.2 the pin selection takes him to the detail for a different pin. But in the

Manually set interface orientation

微笑、不失礼 提交于 2019-12-18 04:24:13
问题 Is there any easy way to manually set the orientation of an interface? I need to set the interface to portrait even though the device orientation might be in landscape during loading. Kinda want to stay away from CGAffineTransforms. 回答1: One method I know that works for me (and is a bit of a hack and can display one orientation before changing to the orientation you want) is: - (void)viewDidAppear:(BOOL)animated { [super viewDidAppear:animated]; UIApplication* application = [UIApplication

App shows white screen on startup after upgrading to iOS 4.2

与世无争的帅哥 提交于 2019-12-13 14:14:41
问题 For the past few weeks I have been working on an app that uses a SoundManager class that I found via the comments of this blog post: http://www.gehacktes.net/2009/03/iphone-programming-part-6-multiple-sounds-with-openal/ The link to the SoundManager and tester app is provided in the comments by David Evans. I am not allowed to provide a second link so I'll mention the name of ZIP file he links to: SoundTester.zip I was very happy with this code, until iOS 4.2 was released. After updating my

How to detect a blow in the microphone with Unity and IOS

梦想的初衷 提交于 2019-12-13 11:51:26
问题 I'm aware that there are several threads with the same problem, but i haven't been able to make their solution work. I ended up creating this class: MicroController.h #import Foundation/Foundation.h> #import <AVFoundation/AVFoundation.h> #import <CoreAudio/CoreAudioTypes.h> #import <UIKit/UIKit.h> @interface MicroController : UIView < UITextFieldDelegate, UIImagePickerControllerDelegate, UINavigationControllerDelegate, AVAudioSessionDelegate > { AVAudioRecorder *recorder; NSTimer *levelTimer;