aryaxt / iOS-Rich-Text-Editor

A Rich Text Editor for iOS
Other
893 stars 158 forks source link

Toolbar doesn't show up #43

Open trivektor opened 10 years ago

trivektor commented 10 years ago

For some reason the toolbar doesn't show up when I create the rich text editor programmatically instead of using an IBOutlet. I'm using iOS 7.1 by the way.

textEditor = [[RichTextEditor alloc] initWithFrame:self.view.bounds] textEditor.delegate = self textEditor.dataSource = self self.view.addSubview(textEditor)

wimbledon commented 10 years ago

I have the same issue...

aryaxt commented 10 years ago

I tried on both iOS7 and iOS6 and can't reproduce the issue. Can you tell me which device and which version you are running? Where do you initialize the rte? in viewDidLoad?

RichTextEditor *rte = [[RichTextEditor alloc] initWithFrame:CGRectMake(50, 50, 400, 400)];
[self.view addSubview:rte];

Thanks

wimbledon commented 10 years ago

Did you try on iOS 7.1? I was running iOS7.1 on iPhone 5. I did initialize the rte in viewDidLoad, and the textView appear fine. We I tap on the textView, the keyboard appear but the toolBar does not appear.

skela commented 10 years ago

Same here in my iPad project (iOS 7.1)

skela commented 10 years ago

I think this is actually CocoaPod specific, because when I replaced the pod with the code from this repo (commenting out 'iOS-Rich-Text-Editor' and including 'WEPopover') the toolbar appeared correctly.

aryaxt commented 10 years ago

Thanks, will look into it and update the cocoapod