Search Results

Search found 6 results on 1 pages for 'risma'.

Page 1/1 | 1 

  • [NSCFNumber _isNaturallyRTL]: unrecognized selector sent to instance 0x605ac10

    - by Risma
    my app got crashed an showed that keyword. There is no error and warning. can some body help me?? this is stack that showed : Call stack at first throw: ( 0 CoreFoundation 0x012ccbe9 __exceptionPreprocess + 185 1 libobjc.A.dylib 0x014215c2 objc_exception_throw + 47 2 CoreFoundation 0x012ce6fb -[NSObject(NSObject) doesNotRecognizeSelector:] + 187 3 CoreFoundation 0x0123e366 ___forwarding___ + 966 4 CoreFoundation 0x0123df22 _CF_forwarding_prep_0 + 50 5 UIKit 0x0042d35e -[UITextField setText:] + 53 6 Koder232_risma_edited 0x0006427a -[FilePropertiesViewController viewWillAppear:] + 442 7 UIKit 0x003c4d52 -[UIView(Hierarchy) _willMoveToWindow:withAncestorView:] + 207 8 UIKit 0x003cfa2b -[UIView(Hierarchy) _makeSubtreePerformSelector:withObject:withObject:copySublayers:] + 378 9 UIKit 0x003cfa5c -[UIView(Hierarchy) _makeSubtreePerformSelector:withObject:withObject:copySublayers:] + 427 10 UIKit 0x003cfa5c -[UIView(Hierarchy) _makeSubtreePerformSelector:withObject:withObject:copySublayers:] + 427 11 UIKit 0x003c6b36 -[UIView(Internal) _addSubview:positioned:relativeTo:] + 370 12 UIKit 0x003c514f -[UIView(Hierarchy) addSubview:] + 57 13 UIKit 0x006ad8ae -[UIPopoverView presentFromRect:inView:contentSize:backgroundStyle:animated:] + 1920 14 UIKit 0x006a0a4c -[UIPopoverView presentFromRect:inView:animated:] + 236 15 UIKit 0x006d9b20 -[UIPopoverController presentPopoverFromRect:inView:permittedArrowDirections:animated:] + 1046 16 Koder232_risma_edited 0x0001f90f -[codeViewController arrangeTabWithTypeGesture:andNumtag:] + 4683 17 Koder232_risma_edited 0x0001e68f -[codeViewController setTap2:] + 99 18 UIKit 0x0061e9c7 -[UIGestureRecognizer _updateGestureWithEvent:] + 727 19 UIKit 0x0061a9d6 -[UIGestureRecognizer _delayedUpdateGesture] + 47 20 UIKit 0x00620fa5 _UIGestureRecognizerUpdateObserver + 584 21 UIKit 0x0062118a _UIGestureRecognizerUpdateGesturesFromSendEvent + 51 22 UIKit 0x003bc6b4 -[UIWindow _sendGesturesForEvent:] + 1292 23 UIKit 0x003b7f87 -[UIWindow sendEvent:] + 105 24 UIKit 0x0039b37a -[UIApplication sendEvent:] + 447 25 UIKit 0x003a0732 _UIApplicationHandleEvent + 7576 26 GraphicsServices 0x0191fa36 PurpleEventCallback + 1550 27 CoreFoundation 0x012ae064 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE1_PERFORM_FUNCTION__ + 52 28 CoreFoundation 0x0120e6f7 __CFRunLoopDoSource1 + 215 29 CoreFoundation 0x0120b983 __CFRunLoopRun + 979 30 CoreFoundation 0x0120b240 CFRunLoopRunSpecific + 208 31 CoreFoundation 0x0120b161 CFRunLoopRunInMode + 97 32 GraphicsServices 0x0191e268 GSEventRunModal + 217 33 GraphicsServices 0x0191e32d GSEventRun + 115 34 UIKit 0x003a442e UIApplicationMain + 1160 35 Koder232_risma_edited 0x00002680 main + 102 36 Koder232_risma_edited 0x00002611 start + 53 37 ??? 0x00000001 0x0 + 1 )

    Read the article

  • keyboard hiding my textview

    - by Risma
    hi guys i have a simple app, it consist of 2 textview, 1 uiview as a coretext subclass, and then 1 scrollview. the others part is subviews from scrollview. I use this scrollview because i need to scroll the textviews and uiview at the same time. I already scroll all of them together, but the problem is, the keyboard hiding some lines in the textview. I have to change the frame of scrollview when keyboard appear, but it still not help. This is my code : UIScrollView *scrollView; UIView *viewTextView; UITextView *lineNumberTextView; UITextView *codeTextView; -(void) viewWillAppear:(BOOL)animated{ [super viewWillAppear:animated]; [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(keyboardWillAppear:) name:UIKeyboardWillShowNotification object:nil]; [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(keyboardWillDisappear:) name:UIKeyboardWillHideNotification object:nil]; self.scrollView.frame = CGRectMake(0, 88, self.codeTextView.frame.size.width, self.codeTextView.frame.size.height); scrollView.contentSize = CGSizeMake(self.view.frame.size.width, viewTextView.frame.size.height); [scrollView addSubview:viewTextView]; CGAffineTransform translationCoreText = CGAffineTransformMakeTranslation(60, 7); [viewTextView setTransform:translationCoreText]; [scrollView addSubview:lineNumberTextView]; [self.scrollView setScrollEnabled:YES]; [self.codeTextView setScrollEnabled:NO]; } -(void)keyboardWillAppear:(NSNotification *)notification { [UIView beginAnimations:nil context:NULL]; [UIView setAnimationDuration:[[[notification userInfo] objectForKey:UIKeyboardAnimationDurationUserInfoKey] doubleValue]]; CGRect keyboardEndingUncorrectedFrame = [[[notification userInfo] objectForKey:UIKeyboardFrameEndUserInfoKey ] CGRectValue]; CGRect keyboardEndingFrame = [self.view convertRect:keyboardEndingUncorrectedFrame fromView:nil]; self.scrollView.frame = CGRectMake(0, 88, self.codeTextView.frame.size.width, self.codeTextView.frame.size.height - keyboardEndingFrame.size.height); [UIView commitAnimations]; } -(void)keyboardWillDisappear:(NSNotification *) notification { [UIView beginAnimations:nil context:NULL]; [UIView setAnimationDuration:[[[notification userInfo] objectForKey:UIKeyboardAnimationDurationUserInfoKey] doubleValue]]; CGRect keyboardEndingUncorrectedFrame = [[[notification userInfo] objectForKey:UIKeyboardFrameEndUserInfoKey] CGRectValue]; CGRect keyboardEndingFrame = [self.view convertRect:keyboardEndingUncorrectedFrame fromView:nil]; self.scrollView.frame = CGRectMake(0, 88, self.codeTextView.frame.size.width, self.codeTextView.frame.size.height + keyboardEndingFrame.size.height); [UIView commitAnimations]; } can somebody help me please?

    Read the article

  • UIButton addTarget method can not use in IOS 4.2

    - by Risma
    hi i have a UIButton made programmatically and i want to add the target and the action for that button. i have use method addTarget: action: forControlEvents: in IOS 4.1 this method is detected, but in 4.2 it didn't, here is my code float version = [[[UIDevice currentDevice] systemVersion] floatValue]; if(version <= 4.1){ moreButton = [[UIButton buttonWithType:UIButtonTypeCustom] initWithFrame:CGRectMake(6.3+5*widthSegment, 0.0, widthSegment, heightSegment)]; [moreButton addTarget:self action:@selector(getPopOverMore:) forControlEvents:UIControlEventTouchUpInside]; } else{ //version 4.2 NSLog(@"versi 4.2"); moreButton = [UIButton buttonWithType:UIButtonTypeCustom]; moreButton.frame = CGRectMake(6.3+7*widthSegment, 0.0, widthSegment, heightSegment); [moreButton addTarget:self action:@selector(getPopOverMore:) forControlEvents:UIControlEventTouchUpInside]; } and this is the action method : - (IBAction)getPopOverMore:(id)sender{ if(moreFileController == nil) { moreFileController = [[MoreFilePopController alloc] initWithStyle:UITableViewStylePlain]; moreFileController.delegate = self; moreFilePopOverController = [[UIPopoverController alloc] initWithContentViewController:moreFileController]; } CGRect frameMore = CGRectMake(6.3+5*widthSegment, 0.0, widthSegment, heightSegment); [moreFilePopOverController presentPopoverFromRect:frameMore inView:navBar permittedArrowDirections:UIPopoverArrowDirectionUp animated:YES]; } any body know, what's wrong here??

    Read the article

  • adding a UIScrollView as a superview of 2 UITextview

    - by Risma
    hi i have 2 textview in a viewcontroller. the 1st textview is not editable, but the 2nd is editable. i want to make both of them scroll in the same position and size when the keyboard is appear. I think i have to use UIScrollView as base of both of textview. And then i add the UIScrollView in xib (bot of textview are made in xib too). and this is the picture if this hierarchy : in the viewDidLoad method, i add this code : - (void)viewDidLoad { [super viewDidLoad]; [scrollTextView addSubview:lineNumberTextView]; [scrollTextView addSubview:_codeTextView]; [lineNumberTextView bringSubviewToFront:scrollTextView]; [_codeTextView bringSubviewToFront:scrollTextView]; } but when i tap on the 2nd textview, the keyboard is not appear. What i have to do? thx for the advices

    Read the article

  • textview.selectedRange.location in UITextview show 2147483647

    - by Risma
    hi i have a textview and i want to get the selectedRange.location value from that textview. in the first time when the keyboard appear, the location value always show an integer point such as 110, or others. But if i dissappear the keyboard and then appear the keyboard again, the location value always show 2147483647. What is this 2147483647 mean and how to get the real location value? This is my code in the keyboard will appear method : -(void)keyboardWillAppear:(NSNotification *)notification { [UIView beginAnimations:nil context:NULL]; [UIView setAnimationDuration:[[[notification userInfo] objectForKey:UIKeyboardAnimationDurationUserInfoKey] doubleValue]]; CGRect keyboardEndingUncorrectedFrame = [[[notification userInfo] objectForKey:UIKeyboardFrameEndUserInfoKey ] CGRectValue]; CGRect keyboardEndingFrame = [self.view convertRect:keyboardEndingUncorrectedFrame fromView:nil]; [UIView commitAnimations]; NSRange selectedRange = textview.selectedRange; NSLog(@"selected Range location : %f", selectedRange.location); }

    Read the article

  • adding a UIScrollView as a superview of 2 UITextview made no view can be scrolled

    - by Risma
    hi i have 2 textview in a viewcontroller. the 1st textview is not editable, but the 2nd is editable. i want to make both of them scroll in the same position and size when the keyboard is appear. I think i have to use UIScrollView as base of both of textview. And then i add the UIScrollView in xib (bot of textview are made in xib too). and this is the picture if this hierarchy : in the viewDidLoad method, i add this code : - (void)viewDidLoad { [super viewDidLoad]; [scrollTextView addSubview:lineNumberTextView]; [scrollTextView addSubview:_codeTextView]; [lineNumberTextView bringSubviewToFront:scrollTextView]; [_codeTextView bringSubviewToFront:scrollTextView]; } but after that i can't scroll anything. What i have to do? thx for the advices

    Read the article

1