iphone-sdk-4.1

How to crop the UIImage in iPhone?

∥☆過路亽.° 提交于 2019-11-27 22:53:28
问题 In my application, I have set one image in UIImageView and the size of UIImageView is 320 x 170. but the size of original image is 320 x 460. so how to crop this image and display in UIImageView. 回答1: Here is a good way to crop an image to a CGRect: - (UIImage*)imageByCropping:(UIImage *)imageToCrop toRect:(CGRect)rect { //create a context to do our clipping in UIGraphicsBeginImageContext(rect.size); CGContextRef currentContext = UIGraphicsGetCurrentContext(); //create a rect with the size we

Test app on iPhone without paying $99 to Apple [closed]

旧城冷巷雨未停 提交于 2019-11-27 15:32:49
I developed an app for iPhone with Xcode 3.2.4 and iOS 4.1. Now I want to test my app on my iPhone, but I don't want to enroll for a developer program. I searched in google and found a lot of tutorials, but they are not working. Then I asked me if it is because I use iOS 4.1. Is there a way to test the app? I've a jailbroken iPhone 4 with iOS 4.1. First, you need to install SSH to your device to be able to copy files via scp. Build your application and grab the binary from your build directory. Copy it to the device's /Applications folder using scp . Change the permissions to 755 recursively

Test app on iPhone without paying $99 to Apple [closed]

半世苍凉 提交于 2019-11-26 22:25:22
问题 I developed an app for iPhone with Xcode 3.2.4 and iOS 4.1. Now I want to test my app on my iPhone, but I don't want to enroll for a developer program. I searched in google and found a lot of tutorials, but they are not working. Then I asked me if it is because I use iOS 4.1. Is there a way to test the app? I've a jailbroken iPhone 4 with iOS 4.1. 回答1: First, you need to install SSH to your device to be able to copy files via scp. Build your application and grab the binary from your build