Skip to content

Instantly share code, notes, and snippets.

View ryanbaldwin's full-sized avatar

Ryan Baldwin ryanbaldwin

  • Toronto, Canada
View GitHub Profile
[2014-11-08T21:07:20.579+0000] [glassfish 4.0] [SEVERE] [AS-WEB-CORE-00108] [javax.enterprise.web.core] [tid: _ThreadID=209 _ThreadName=admin-listener(8)] [timeMillis: 1415480840579] [levelValue: 1000] [[
ContainerBase.addChild: start:
org.apache.catalina.LifecycleException: java.lang.IllegalArgumentException: javax.servlet.ServletException: java.lang.ExceptionInInitializerError
at org.apache.catalina.core.StandardContext.start(StandardContext.java:5864)
at com.sun.enterprise.web.WebModule.start(WebModule.java:691)
at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:1041)
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:1024)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:747)
at com.sun.enterprise.web.WebContainer.loadWebModule(WebContainer.java:2278)
at com.sun.enterprise.web.WebContainer.loadWebModule(WebContainer.java:1924)
@ryanbaldwin
ryanbaldwin / UIButtonTypeRoundedRectInAnnotationView
Last active December 24, 2015 20:59
Trying to add a UIButtonTypeRoundedRect to an annotation view. Everything shows up fine (title and subtitle), and there's space to the right of the details where you'd expect the button to be, but the actual button itself never shows up. Any ideas?
- (MKAnnotationView *)mapView:(MKMapView *)mapView viewForAnnotation:(id <MKAnnotation>)annotation {
MKPinAnnotationView *annotationView = nil;
if(annotation != mapView.userLocation) {
static NSString *reuseId = @"annotationView";
annotationView = (MKPinAnnotationView *)[mapView dequeueReusableAnnotationViewWithIdentifier:reuseId];
if(!annotationView) {
annotationView = [[MKPinAnnotationView alloc] initWithAnnotation:annotation reuseIdentifier:reuseId];
}