So, we have a project using the Three20 Library from Facebook (http://github.com/facebook/three20), and we're trying to compile against the latest version (HEAD from Github).
Previously it's worked fine, but something has now changed :)
The error I'm getting is an unrecognized selector on TTTableViewController:
[TTViewControllerSubClass popupViewController]: unrecognized selector sent to instance
(There's another question about this here)
I checked TTViewController, and it turns out we don't actually need to call popupSubView, so I commented that out. I then get this error:
-[UIImageView removeAllSubviews]: unrecognized selector sent to instance
So, I checked the locations of both these methods in Three20, and they are in UIViewControllerAdditions.m and UIViewAdditions.m, respectively. So this makes me think that Three20 is adding some methods to the basic UIKit classes, and these methods aren't actually getting included the way they should be.
Problem is, I get stuck there :) I've got no clue how to make UIKit include these classes, or "fix" Three20 (if it is indeed a Three20 problem) to make it work.
So I'm hoping some kind soul here will slog through my incredibly long problem description and point me in the right direction!
Thanks in advance :)
Looks like upgrading Three20 and following the instructions at http://three20.info/setup/existing I managed to get this working!
Related
I am using a Oculus DK2 (v0.8) and OSVR SDK. I'm having a problem getting the HMD to run/display anything.
The Oculus samples and the OSVR samples do work however, so the osvr_server seems to run fine.
My application itself renders a test scene just fine when not using a HMD.
I tried two approaches:
First, just creating a osvr context and creating a DisplayConfig object. This seems to work, but DisplayConfig::checkStartup() fails (I do this in a loop, calling update on the context when the checkStartup call is failing). I used the OpenGLSample.cpp as a guide for this
Second, I tried using a RenderManager, but the call to createRenderManager results in a crash within the RenderManager.dll. I get the same crash wether I create the graphics lib object myself or if I let the library create it.
I am quite stuck now, since the demos and examples do work, I have no idea where to look for the error on my side. Creating the context works, querying interfaces as well, but the crash with createRenderManager is beyond me.
Does anyone have any hints or ideas what the problem could possibly be?
Regards and thanks in advance
pettersson
RenderManager should not crash during open. There have been a couple of bug fixes recently to avoid that happening, and the latest RenderManager binaries, libraries and header files are available with the SDK download from http://osvr.github.io/using/ along with updated copies of the example programs.
When something goes wrong in RenderManager, it usually reports that to standard error. We're moving that to a logging interface, but for now it should show up on the console. Posting an output of that as an issue at https://github.com/sensics/OSVR-RenderManager/issues is a good way to let the developers know that there is a problem. Of course, providing the same sort of information you provided here will be helpful as well.
After reading many SO posts about the same error, I cant seem to resolve the problem with AdMob.
Im trying to implement it into my existing app and I copied the SDK and followed the tutorial.
All compiles fine but the app crashes with:
[GADObjectPrivate changeState:]: unrecognized selector sent to instance 0xa5cc610'
They say I need to add -ObjC or -all_load to Other Linker Flags.
When I do that, I get many, many duplicate symbol errors.
Since Im upgrading a project from a different developer, I dont know
the exact structure of the code.
Any other suggestions?
When you using the Abmob API, they add 2 API for you. 1 for Debug and 1 for real.
2 API have same functions and many things.
(Try to see what happen in your debug screen, they will give you the location of duplicated folder - It in Google Library 3.0/GoogleAnalysis/Library/lib - ...debug.lib)
The simple solution is remove the Debug API and you will be fine.
Addition: Adding ObjC is right for your program, it is other problem.
I solved my problem by using CGColorGetComponents, but I would like to understand exactly what was the reason.
I was doing the following with an instance of UIColor *firstColour :
[firstColour getRed:&r green:&g blue:&b alpha:nil];
This was working perfectly fine on simulator. Then I tested it on my device, and got this error :
UIDeviceRGBColor getRed:green:blue:alpha unrecognized selector sent to instance
After some research on the Internet I found that UIColor is actually replaced by subclasses, like UIDeviceRGBColor. Fine, but shouldn't subclasses work just like UIColor and accept (at least) the same methods ?
I enabled Zombie but apparently this wasn't a memory management issue, like most people say on forums. And I can't find documentation for UIDeviceRGBColor so I don't know how it is supposed to behave. Does someone know why it happened, and above all, if this is likely to happen again with another method ?
Thank you.
getRed:green:blue:alpha: method in UIColor is available starting iOS 5.0. Most likely the problem is that your device has older OS version where that method is not available.
On older OS you'll probably have to retrieve color components from underlying CGColorRef structure using CGColorGetComponents/CGColorGetNumberOfComponents functions
I have tried so many solutions but nothing seems to work for me. Approximately one out of every 4 times i get
/SourceCache/ProtocolBuffer_Sim/ProtocolBuffer-51.2/Runtime/PBRequester.m:684 server returned error: 503
I have declared the geocoder at the class level and added a retain property (just like in apple's CurrentAddress sample code) and released in dealloc method.
During instantiation i have added it to the autorelease pool as shown below
self.reverseGeocoder =[[[MKReverseGeocoder alloc] initWithCoordinate:newLocation.coordinate]autorelease];
reverseGeocoder.delegate=self;
[reverseGeocoder start];
This was the suggestions i got from other solutions. Apparently nothing seems to work for me.
Am i doing something wrong? I am beginning to wonder if there a solution at all? :(
Thanks in advance
I think you need to go through google map api
this may help you
http://maps.googleapis.com/maps/api/geocode/json?latlng=40.714224,-73.961452&sensor=true
I think you need to go for google api for map.
You need to run java/Script on UiWebView by your custom function...
I'm trying to see if I can find some leaks myself in Apple's TopSongs app. Can someone help me out in at least one and how to identify what is in the Leaks reports and how I can get an idea on finding them?
ie: I got one like this:
# Category Event Type Timestamp Address Size Responsible Library Responsible Caller
0 GeneralBlock-448 Malloc 00:02.185 0x3f41220 448 libxml2.2.dylib xmlNewParserCtxt
From what I can tell, the method xmlNewParserCtxt is the problem, and it's not releasing an object, hence Malloc. The responsible library tells me it's the libxml2.2.dylib library with the problem, which I can't edit.
Am I heading in the right direction? If so, half the leaks are in that library and well, i can't edit that.
'
UPDATE:
Check out the answer to this question.
Perhaps a xmlNewParserCtxt was created (malloc'd)
xmlParserCtxt* context;
context = xmlNewParserCtxt();
and then not freed?
xmlFreeParserCtxt(context);
Finally got Snow Leopard and Xcode 3.2 installed with the built-in Clang. Anyways, it seems like Apple's code has it's own leaks inside their libraries. I decided not to use Apple's TopSongs code.