ios7

iOS 7 - UITextView clipping text

冷暖自知 提交于 2019-12-23 03:51:48
问题 I'm trying to fit 3 lines of text in a textview of a certain size by using [_messageField setContentInset:UIEdgeInsetsMake(-8, -6, 0,0)]; This works in iOS 6, but iOS 7 seems to be clipping content at the bottom of the textview. Both of the textviews shown below have the same font, text, and edge insets. Line 3 does not appear in iOS 7. 回答1: I had success using [_messageField setTextContainerInset:UIEdgeInsetsMake(0, 0, 0, 0)]; and adjusting as needed. 回答2: This solved the issue I was having.

Trouble segue-ing to a uiviewcontroller from appDelegate upon UILocalNotification - with SWRevealViewController in the mix

纵饮孤独 提交于 2019-12-23 03:03:24
问题 I'm using iBeacons and am trying to respond to the UILocalNotifications they trigger. Everything works fine there and I'm able to display my message content in the notification. I want to be able to launch a specific UIViewController when the user swipes the notification. Currently, according to NSLog output, I'm very close. The tricky bit is that I'm using SWRevealViewController for its cool slider-window menu features and so the segue is crapping out and saying, *** Assertion failure in -

Issue with UISearchBar and UITableView in iOS7

只谈情不闲聊 提交于 2019-12-23 02:50:20
问题 I have an app that works fine in iOS6. It has a table view with a search bar. When I run it in iOS7 I got the following issue: As you can see in the image above, the search results are displayed in a wrong position, they are overlapping the search control, any idea how to fix this? The first image is showing the search control, and the search results should be shown in the position I marked in red in that first image. Thanks. -Fernando Well, I made some changes but it is still not so good: -

I have edited UIImagePickerController.h by mistake . now i am getting errors in my project as below

天涯浪子 提交于 2019-12-23 02:49:05
问题 UIKit.framework/Headers/UIImagePickerController.h' has been modified since the precompiled header '/Users / Library/Developer/Xcode/DerivedData/ModuleCache/2gh/UIKit.pcm' was built. I also got " note: after modifying system headers, please delete the module cache at '/Users/Library/Developer/Xcode/DerivedData/ModuleCache/2PG1NJRUR3TN0' 1 error generated. " I restarted my xcode5 , but it is not working. 回答1: In Your /Users/dipenchudasama/Library/Developer/Xcode/DerivedData delete all contain

Xcode 5 Command Line: invalid deployment target '3.0.0' for architecture 'arm64'

半世苍凉 提交于 2019-12-23 02:30:57
问题 I'm building a fat Crypto++ library from the command line under Xcode 5 with the iOS 7 SDK. The iOS 7 SDK includes the arm64 target. All goes well for the armv7 and armv7s architectures, but arm64 is a different matter: clang++ -DNDEBUG -g -Os -pipe -fPIC -DCRYPTOPP_DISABLE_ASM -arch arm64 --sysroot=/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS7.0.sdk -Wno-tautological-compare -Wno-unused-value -c 3way.cpp error: invalid deployment target '3.0

What is the Best Way To show UITextField with only a bottom border?

泪湿孤枕 提交于 2019-12-23 01:54:20
问题 I would like to have UITextField appear only with a bottom border. See the designer's image below: UIBezierPath *path = [UIBezierPath bezierPath]; [path moveToPoint:CGPointMake(150.0, 350.0)]; [path addLineToPoint:CGPointMake(250.0, 209.0)]; CAShapeLayer *shapeLayer = [CAShapeLayer layer]; shapeLayer.path = [path CGPath]; shapeLayer.strokeColor = [[UIColor blueColor] CGColor]; shapeLayer.lineWidth = 3.0; shapeLayer.fillColor = [[UIColor clearColor] CGColor]; I have Tried This but not Getting

Memcpy crash only on iPhone 5s

最后都变了- 提交于 2019-12-23 01:45:25
问题 All, I am facing a strange issue with iPhone 5s. I am doing a HMAC-SHA1 encrypting in my app using a third party library. The library uses memcpy , which am not aware what it is, as I am not into too much of memory level programming in C . The encryption works perfectly fine in all iphones except the 64 bit 5s . Below is the code where it crashes (5th line) . void SHA1Update(SHA1_CTX* context, unsigned char* data, unsigned int len) { unsigned int i, j; j = (context->count[0] >> 3) & 63; if (

crashing application when accessing phonebook ios

筅森魡賤 提交于 2019-12-23 01:06:56
问题 ios memory leak when accessing phone book here is my orignal question and this is crash log. Memory leak problem has been resolved but application is crash when I access the contact and pop to navigation controller again push and accessing the contact, repeating this process 3-4 time and app will crash. crash log: Aug 6 19:11:08 IPad <Warning>: Fetching contact info ----> Aug 6 19:11:08 IPad <Notice>: (Warn ) [ABLog]: <ABSource.c ABAddressBookCopyDefaultSource:111> Actual default source doesn

NSURLSession make sure Upload worked

半城伤御伤魂 提交于 2019-12-23 01:03:30
问题 What's the best approach to make sure that an upload works? I need to upload images, to a server and make sure, that the upload has worked. If, for whatever reason, the upload did not work, I'll have to retry later. Currently, I'm using NSUrlSession to upload the image: - (void)didCreateSignature:(UIImage *)image { BLog(); NSArray *paths = NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES); NSString *documentsDirectory = [paths objectAtIndex:0]; NSString

GPUImage displaying image instead of live video

青春壹個敷衍的年華 提交于 2019-12-22 18:49:10
问题 I've gone through the obj-c GPUImage framework, and as per the example in the documentation, I added the following snippet with intention to display filtered live video: CGRect mainScreenFrame = [[UIScreen mainScreen] applicationFrame]; GPUImageVideoCamera *videoCamera = [[GPUImageVideoCamera alloc] initWithSessionPreset:AVCaptureSessionPreset640x480 cameraPosition:AVCaptureDevicePositionBack]; videoCamera.outputImageOrientation = UIInterfaceOrientationPortrait; GPUImageFilter *customFilter =