EddyBorja / MLPAutoCompleteTextField

UITextfield subclass with autocomplete menu. For iOS.
Other
1.21k stars 223 forks source link

Suggestions are not showing up on iPhone 4 IOS 6.1.3 #11

Open lironsher opened 11 years ago

lironsher commented 11 years ago

The Demo code is not running on iPhone 4 IOS 6.1.3 while running on iPhone 4S (6.1.3) and iPhone 5 (6.0.4) Any Ideas ?

EddyBorja commented 11 years ago

Just tried it on an iPhone 4 running iOS 7 this morning, confirmed that the suggestions don't show up when you start typing.

In the DEMOViewController, If I comment out this method:

And uncomment this one:

Thereby avoiding the asynchronous fetching, the suggestions appear.

The problem I suspect is in line 169: dispatch_queue_t queue = dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_BACKGROUND, 0);

If you place a breakpoint after the dispatch_async in this same method inside the block, such as at line 171, it will never get called, but it should...

Since this delegate method is part of the DEMOViewController and not part of the MLPAutoCompleteTextField source code you shouldn't have a problem in your app as long as your implementation of the delegate method works right.

Thermometer91 commented 11 years ago

I have this problem too. Tested my App for the first time on an iPhone 4 with iOS 6.1.2, and when the suggestion box tried to load, nothing happened. After this, when I pushed/popped the view with the MLPAutoCompleteTextField, the application hung. It didn't crash, it just hung until I force quitted it.

This does not occur in the iPhone 6.1 simulator with 3,5" retina display.

Why would this only occur on the iPhone 4? Does it's processor handle asynchronous queues differently?

Other than this, great work on this subclass! It's a really impressive fast auto-complete implementation.

EddyBorja commented 11 years ago

I don't remember all the hardware specific details of the iPhone 4 anymore. Solving this problem will just take some experimentation.

3a4oT commented 11 years ago

the same problem on the iPod touch 4-th generation (iOS 6.1.2)

damien-rivet commented 10 years ago

Hi,

iPhone 4 under iOS 6.1.2 works like a charm, the colors and the UI style are not really matching but it works.

EddyBorja commented 10 years ago

Hm, really odd. Great that it works somewhat though. Some obscure details must have changed.

On Wed, Mar 26, 2014 at 5:49 AM, Damien R. notifications@github.com wrote:

Hi,

iPhone 4 under iOS 6.1.2 works like a charm, the colors and the UI style are not really matching but it works.

Reply to this email directly or view it on GitHubhttps://github.com/EddyBorja/MLPAutoCompleteTextField/issues/11#issuecomment-38665208 .