how to choose PDF file in IOS - ios

I searched online and GitHub and couldn't find a way to properly select a PDF in IOS like with an image or video. For example, I can open and select a photo (select the photo with other methods that hadle it) like this:
self.logoImagePicker = [[UIImagePickerController alloc] init];
self.logoImagePicker.delegate = self;
[self.logoImagePicker setSourceType:UIImagePickerControllerSourceTypePhotoLibrary];
[self presentViewController:self.logoImagePicker animated:YES completion:nil];
I've attempted this:
// Present PDF;s from which to choose
UIDocumentInteractionController *pdfPicker = [[UIDocumentInteractionController alloc] init];
pdfPicker.delegate = self; // ensure you set the delegate so when a PDF is chosen the right method can be called
[self presentViewController:pdfPicker animated:YES completion:nil];
But i get an error here:
#import <UIKit/UIKit.h>
#import "AppDelegate.h"
int main(int argc, char * argv[]) {
#autoreleasepool {
return UIApplicationMain(argc, argv, nil, NSStringFromClass([AppDelegate class]));
}
}
With this error output:
2016-08-10 07:40:59.190 Whats New[55195:1962738] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: 'No available types for source 0'
*** First throw call stack:
(
0 CoreFoundation 0x00ef1494 __exceptionPreprocess + 180
1 libobjc.A.dylib 0x0060fe02 objc_exception_throw + 50
2 UIKit 0x01eb9dc2 -[UIImagePickerController mediaTypes] + 0
3 Whats New 0x000c6253 -[SellerHomePageViewController choosePdfBtn:] + 243
4 libobjc.A.dylib 0x006240b5 -[NSObject performSelector:withObject:withObject:] + 84
5 UIKit 0x01ab0e38 -[UIApplication sendAction:to:from:forEvent:] + 118
6 UIKit 0x01ab0db7 -[UIApplication sendAction:toTarget:fromSender:forEvent:] + 64
7 UIKit 0x01c54f3b -[UIControl sendAction:to:forEvent:] + 79
8 UIKit 0x01c552d4 -[UIControl _sendActionsForEvents:withEvent:] + 433
9 UIKit 0x01c542c1 -[UIControl touchesEnded:withEvent:] + 714
10 UIKit 0x02037d2e _UIGestureRecognizerUpdate + 12763
11 UIKit 0x01b30efd -[UIWindow _sendGesturesForEvent:] + 1559
12 UIKit 0x01b325b6 -[UIWindow sendEvent:] + 1137
13 UIKit 0x01ad3be8 -[UIApplication sendEvent:] + 266
14 UIKit 0x01aa8769 _UIApplicationHandleEventQueue + 7795
15 CoreFoundation 0x00e03e5f __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 15
16 CoreFoundation 0x00df9aeb __CFRunLoopDoSources0 + 523
17 CoreFoundation 0x00df8f08 __CFRunLoopRun + 1032
18 CoreFoundation 0x00df8846 CFRunLoopRunSpecific + 470
19 CoreFoundation 0x00df865b CFRunLoopRunInMode + 123
20 GraphicsServices 0x05aa5664 GSEventRunModal + 192
21 GraphicsServices 0x05aa54a1 GSEventRun + 104
22 UIKit 0x01aaeeb9 UIApplicationMain + 160
23 Whats New 0x000d1e4a main + 138
24 libdyld.dylib 0x03cc4a25 start + 1
)
libc++abi.dylib: terminating with uncaught exception of type NSException
Is there something similar to choosing photos but only for PDF's?

1- There is no native control for like UIImagePicker that lets you pick a PDF.
2- You have no access to PDFs in the iphone since unlike android, there is no Explorer.
If you want to save PDFs you should save them as coreData in your app, and you should make a UITableView or UICOllectionView with a view for each PDF as a PDF Picker. Keep in mind this will stay within the context of the app as IOS behaves differently than android

Related

signal SIGARBT error

I get this error if I'll run my App in the iOS Simulator (iPhone 4-inch 32-bit iOS 7.1):
Thread 1: signal SIGABRT
Error:
int main(int argc, char * argv[])
{
#autoreleasepool
{
return UIApplicationMain(argc, argv, nil, NSStringFromClass([AppDelegate class]));
}
}
I hope someone can help me.
Console Report:
2014-04-26 14:09:24.039 Picxxr[2184:60b] -[ViewController filter1:]: unrecognized selector sent to instance 0x964d580
2014-04-26 14:09:24.041 Picxxr[2184:60b] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[ViewController filter1:]: unrecognized selector sent to instance 0x964d580'
*** First throw call stack:
(
0 CoreFoundation 0x01d651e4 __exceptionPreprocess + 180
1 libobjc.A.dylib 0x01ae48e5 objc_exception_throw + 44
2 CoreFoundation 0x01e02243 -[NSObject(NSObject) doesNotRecognizeSelector:] + 275
3 CoreFoundation 0x01d5550b ___forwarding___ + 1019
4 CoreFoundation 0x01d550ee _CF_forwarding_prep_0 + 14
5 libobjc.A.dylib 0x01af6880 -[NSObject performSelector:withObject:withObject:] + 77
6 UIKit 0x007a63b9 -[UIApplication sendAction:to:from:forEvent:] + 108
7 UIKit 0x007a6345 -[UIApplication sendAction:toTarget:fromSender:forEvent:] + 61
8 UIKit 0x008a7bd1 -[UIControl sendAction:to:forEvent:] + 66
9 UIKit 0x008a7fc6 -[UIControl _sendActionsForEvents:withEvent:] + 577
10 UIKit 0x008a7243 -[UIControl touchesEnded:withEvent:] + 641
11 UIKit 0x00b3c2e3 _UIGestureRecognizerUpdate + 7166
12 UIKit 0x007e5a5a -[UIWindow _sendGesturesForEvent:] + 1291
13 UIKit 0x007e6971 -[UIWindow sendEvent:] + 1021
14 UIKit 0x007b85f2 -[UIApplication sendEvent:] + 242
15 UIKit 0x007a2353 _UIApplicationHandleEventQueue + 11455
16 CoreFoundation 0x01cee77f __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 15
17 CoreFoundation 0x01cee10b __CFRunLoopDoSources0 + 235
18 CoreFoundation 0x01d0b1ae __CFRunLoopRun + 910
19 CoreFoundation 0x01d0a9d3 CFRunLoopRunSpecific + 467
20 CoreFoundation 0x01d0a7eb CFRunLoopRunInMode + 123
21 GraphicsServices 0x032155ee GSEventRunModal + 192
22 GraphicsServices 0x0321542b GSEventRun + 104
23 UIKit 0x007a4f9b UIApplicationMain + 1225
24 Picxxr 0x0000cd7d main + 141
25 libdyld.dylib 0x03e0c701 start + 1
)
libc++abi.dylib: terminating with uncaught exception of type NSException
(lldb)
Filter1 in a class called ViewController doesn't exist. You may have deleted an outlet or something from the code, but forgot to delete the link from the actual object in the storyboard. Right click on what was linked to Filter1 and see if it has the old (deleted) connection still.
It looks like you setup a button with an action of filter1: but you never added the filter1: method to your ViewController class.
Perhaps you defined the method as filter1 instead of filter1:. The colon makes a huge difference.
If your method is really:
- (IBAction)filter1 {
}
Then you need to change the button to use the selector filter1 instead of filter1:. Or change the method to:
- (IBAction)filter1:(id)sender {
}

Issue with pushing a segue

I assigned a button to push a segue to another view controller but when I execute this part of the code I get the following:
2014-02-20 10:44:29.357 nar[20244:70b] *** Terminating app due to uncaught exception 'NSGenericException', reason: 'Push segues can only be used when the source controller is managed by an instance of UINavigationController.'
*** First throw call stack:
(
0 CoreFoundation 0x017395e4 __exceptionPreprocess + 180
1 libobjc.A.dylib 0x014bc8b6 objc_exception_throw + 44
2 UIKit 0x0076eca5 -[UIStoryboardPushSegue destinationContainmentContext] + 0
3 UIKit 0x0075f07e -[UIStoryboardSegueTemplate _perform:] + 174
4 UIKit 0x0075f0f9 -[UIStoryboardSegueTemplate perform:] + 115
5 libobjc.A.dylib 0x014ce874 -[NSObject performSelector:withObject:withObject:] + 77
6 UIKit 0x0022c0c2 -[UIApplication sendAction:to:from:forEvent:] + 108
7 UIKit 0x0022c04e -[UIApplication sendAction:toTarget:fromSender:forEvent:] + 61
8 UIKit 0x003240c1 -[UIControl sendAction:to:forEvent:] + 66
9 UIKit 0x00324484 -[UIControl _sendActionsForEvents:withEvent:] + 577
10 UIKit 0x00323733 -[UIControl touchesEnded:withEvent:] + 641
11 UIKit 0x0059ec7f _UIGestureRecognizerUpdate + 7166
12 UIKit 0x0026919a -[UIWindow _sendGesturesForEvent:] + 1291
13 UIKit 0x0026a0ba -[UIWindow sendEvent:] + 1030
14 UIKit 0x0023de86 -[UIApplication sendEvent:] + 242
15 UIKit 0x0022818f _UIApplicationHandleEventQueue + 11421
16 CoreFoundation 0x016c283f __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 15
17 CoreFoundation 0x016c21cb __CFRunLoopDoSources0 + 235
18 CoreFoundation 0x016df29e __CFRunLoopRun + 910
19 CoreFoundation 0x016deac3 CFRunLoopRunSpecific + 467
20 CoreFoundation 0x016de8db CFRunLoopRunInMode + 123
21 GraphicsServices 0x036de9e2 GSEventRunModal + 192
22 GraphicsServices 0x036de809 GSEventRun + 104
23 UIKit 0x0022ad3b UIApplicationMain + 1225
24 w1nnar 0x00002f2d main + 141
25 libdyld.dylib 0x01d7770d start + 1
)
libc++abi.dylib: terminating with uncaught exception of type NSException
(lldb)
And I get taken to my main file main.m and it highlights the following:
return UIApplicationMain(argc, argv, nil, NSStringFromClass([AppDelegate class]));
Not sure what the issue is?
Suggestions and thoughts?
You're trying to push from a UIViewController not being embed in a UINavigationController.
What you need to do is go to your storyboard, select the UIViewController you're trying to push from, go to the Editor menu, select Embed in, and Navigation Controller. Then you can push other UIViewControllers on it.
For information on navigation in iOS apps, read Apple's documentation.
You need a UINavigationController to embed your current view. Since Segues use navigation controllers to push other view controllers on top of it.
If you're using a storyboard, add a UINavigationController and embed your view in it.

Crash attempting to set delegate of textfield

I have a lot of textfields and what I am trying to make them do is dismiss when the return key is used. In order for this to work you need to set the delegate of each textfield to self, like this [textfield setDelegate: self];. I have over 50 textfields in my project and in order to make it so they all dismiss I have to copy that line of code for each textfield. In the example below I used a for loop to try to shrink this down, but my project crashes and gives me this error when I try. Can someone tell me what im doing wrong and how i can fix this?
//.h
#interface InsertScheduleCGPS : UIViewController <UITextFieldDelegate>{
NSArray *Dayh;
IBOutlet UITextField *Day11;
}
#property(nonatomic, assign) id<UITextFieldDelegate> delegate;
#property (nonatomic,strong) NSArray *Dayh;
.
//.m
- (void)viewDidLoad
{
[super viewDidLoad];
Dayh = [NSArray arrayWithObjects:#"Day11", nil];
NSLog(#"euf");
for(int i=0; i<[self.Dayh count]; i++) {
NSLog(#"dd%#",[self.Dayh objectAtIndex:i]);
[[self.Dayh objectAtIndex:i] setDelegate: self];
}
- (BOOL)textFieldShouldReturn:(UITextField *)Day11 {
[[self view] endEditing:YES];
return NO;
}
ERROR:
2014-01-18 19:15:26.712 Swepple[64912:70b] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[__NSCFConstantString setDelegate:]: unrecognized selector sent to instance 0x144ec'
*** First throw call stack:
(
0 CoreFoundation 0x0183b5e4 __exceptionPreprocess + 180
1 libobjc.A.dylib 0x015be8b6 objc_exception_throw + 44
2 CoreFoundation 0x018d8903 -[NSObject(NSObject) doesNotRecognizeSelector:] + 275
3 CoreFoundation 0x0182b90b ___forwarding___ + 1019
4 CoreFoundation 0x0182b4ee _CF_forwarding_prep_0 + 14
5 Swepple 0x0000bbd6 -[InsertScheduleCGPS viewDidLoad] + 4262
6 UIKit 0x00440318 -[UIViewController loadViewIfRequired] + 696
7 UIKit 0x004405b4 -[UIViewController view] + 35
8 UIKit 0x0044f361 -[UIViewController viewControllerForRotation] + 63
9 UIKit 0x00446f00 -[UIViewController _visibleView] + 84
10 UIKit 0x006d511a -[UIWindowController transition:fromViewController:toViewController:target:didEndSelector:animation:] + 5199
11 UIKit 0x0044c0fc -[UIViewController presentViewController:withTransition:completion:] + 6433
12 UIKit 0x0044c61f -[UIViewController presentViewController:animated:completion:] + 130
13 UIKit 0x0044c65f -[UIViewController presentModalViewController:animated:] + 56
14 UIKit 0x00870e16 -[UIStoryboardModalSegue perform] + 271
15 UIKit 0x0086107e -[UIStoryboardSegueTemplate _perform:] + 174
16 UIKit 0x00442280 -[UIViewController performSegueWithIdentifier:sender:] + 72
17 Swepple 0x000052d4 -[SecondViewController insert:] + 244
18 libobjc.A.dylib 0x015d0874 -[NSObject performSelector:withObject:withObject:] + 77
19 UIKit 0x0032e0c2 -[UIApplication sendAction:to:from:forEvent:] + 108
20 UIKit 0x0032e04e -[UIApplication sendAction:toTarget:fromSender:forEvent:] + 61
21 UIKit 0x004260c1 -[UIControl sendAction:to:forEvent:] + 66
22 UIKit 0x00426484 -[UIControl _sendActionsForEvents:withEvent:] + 577
23 UIKit 0x00425733 -[UIControl touchesEnded:withEvent:] + 641
24 UIKit 0x0036b51d -[UIWindow _sendTouchesForEvent:] + 852
25 UIKit 0x0036c184 -[UIWindow sendEvent:] + 1232
26 UIKit 0x0033fe86 -[UIApplication sendEvent:] + 242
27 UIKit 0x0032a18f _UIApplicationHandleEventQueue + 11421
28 CoreFoundation 0x017c483f __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 15
29 CoreFoundation 0x017c41cb __CFRunLoopDoSources0 + 235
30 CoreFoundation 0x017e129e __CFRunLoopRun + 910
31 CoreFoundation 0x017e0ac3 CFRunLoopRunSpecific + 467
32 CoreFoundation 0x017e08db CFRunLoopRunInMode + 123
33 GraphicsServices 0x037e09e2 GSEventRunModal + 192
34 GraphicsServices 0x037e0809 GSEventRun + 104
35 UIKit 0x0032cd3b UIApplicationMain + 1225
36 Swepple 0x0000e04d main + 141
37 libdyld.dylib 0x01d7c70d start + 1
)
libc++abi.dylib: terminating with uncaught exception of type NSException
(lldb)
You probably meant
Dayh = [NSArray arrayWithObjects:Day11, nil];
At present, Dayh is an array containing the string "Day11", not the text field.

Aviary integration Issues

I am integrating Aviary into my application and getting a crash when i try to present AFPhotoEditorController into one of my View Controller.
static dispatch_once_t onceToken;
dispatch_once(&onceToken, ^{
[self setPhotoEditorCustomizationOptions];
});
// Initialize the photo editor and set its delegate
AFPhotoEditorController * photoEditor = [[AFPhotoEditorController alloc] initWithImage:editingResImage];
[photoEditor setDelegate:self];
// If a high res image is passed, create the high res context with the image and the photo editor.
if (highResImage) {
[self setupHighResContextForPhotoEditor:photoEditor withImage:highResImage];
}
// Present the photo editor.
//This is the line on which i am getting crash
[self presentViewController:photoEditor animated:YES completion:nil];
This is the actual stack trace
Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'Could not load NIB in bundle: 'NSBundle </Users/Mac/Library/Application Support/iPhone Simulator/7.0/Applications/CB39553D-8CA9-425C-BF5E-B33DD5813CA9/KidstaGram.app/AviarySDKResources.bundle> (not yet loaded)' with name 'AFSDKViewController_iPhone_4_inch_7''
First throw call stack:
(
0 CoreFoundation 0x027055e4 __exceptionPreprocess + 180
1 libobjc.A.dylib 0x024888b6 objc_exception_throw + 44
2 CoreFoundation 0x027053bb +[NSException raise:format:] + 139
3 UIKit 0x0149b65c -[UINib instantiateWithOwner:options:] + 951
4 UIKit 0x0130dc95 -[UIViewController _loadViewFromNibNamed:bundle:] + 280
5 UIKit 0x0130e43d -[UIViewController loadView] + 302
6 UIKit 0x0130e73e -[UIViewController loadViewIfRequired] + 78
7 UIKit 0x0130ec44 -[UIViewController view] + 35
8 UIKit 0x0131d9f1 -[UIViewController viewControllerForRotation] + 63
9 UIKit 0x01315590 -[UIViewController _visibleView] + 84
10 UIKit 0x015a321a -[UIWindowController transition:fromViewController:toViewController:target:didEndSelector:animation:] + 5199
11 UIKit 0x0131a78c -[UIViewController presentViewController:withTransition:completion:] + 6433
12 UIKit 0x0fcb9f1f -[UIViewControllerAccessibility(SafeCategory) presentViewController:withTransition:completion:] + 71
13 UIKit 0x0131acaf -[UIViewController presentViewController:animated:completion:] + 130
14 KidstaGram 0x00029f9c -[UploadViewController launchPhotoEditorWithImage:highResolutionImage:] + 412
15 KidstaGram 0x00029d0f -[UploadViewController launchEditorWithAsset:] + 191
16 KidstaGram 0x0002b3fb __76-[UploadViewController imagePickerController:didFinishPickingMediaWithInfo:]_block_invoke_2 + 107
17 AssetsLibrary 0x0077f639 __56-[ALAssetsLibrary assetForURL:resultBlock:failureBlock:]_block_invoke_2 + 215
18 libdispatch.dylib 0x068f0818 _dispatch_call_block_and_release + 15
19 libdispatch.dylib 0x069054b0 _dispatch_client_callout + 14
20 libdispatch.dylib 0x068f3766 _dispatch_main_queue_callback_4CF + 340
21 CoreFoundation 0x0276aa5e __CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE__ + 14
22 CoreFoundation 0x026ab72b __CFRunLoopRun + 1963
23 CoreFoundation 0x026aab33 CFRunLoopRunSpecific + 467
24 CoreFoundation 0x026aa94b CFRunLoopRunInMode + 123
25 GraphicsServices 0x037069d7 GSEventRunModal + 192
26 GraphicsServices 0x037067fe GSEventRun + 104
27 UIKit 0x011fb94b UIApplicationMain + 1225
28 KidstaGram 0x00015fbd main + 141
29 libdyld.dylib 0x06b95725 start + 0
)
libc++abi.dylib: terminating with uncaught exception of type NSException
Please update to the latest version of the SDK on the Aviary website : developers.aviary.com. Additionally, please also make sure that you updated both the .framework file in addition to the .bundle
if you using AdobeCreativeSDK it will help you.
First we need to open AdobeCreativeSDKImage.framework and from that go to resources folder and copy AdobeCreativeSDKImageResources.bundle and paste that in project directory after that add it to the project
In the same way first we need to open AdobeCreativeSDKFoundation.framework and from that go to resources folder and copy AdobeCreativeSDKFoundationResources.bundle and paste that in project directory after that add it to the project

UIWebView throwing NSUnknownKeyException iPad

I have a tab bar application. Everything works normally, and I can switch between tabs fine and everything, except when I switch to my second tab ProductViewClass the view doesn't update and it spits out the console output below. I have nothing in this view except for a UIWebView and a UILabel. When I delete the UIWebView it runs successfully, and when I add another it still works. It only stops working when I connect the IBOutlet from my File's Owner to the UIWebView. Besides synthesizing and releasing productWebView the only non-template code in ProductWebView.m is this:
NSString *urlString = #"http://www.google.com/";
NSURL *theURL = [NSURL URLWithString:urlString];
NSURLRequest *urlRequest = [NSURLRequest requestWithURL:theURL];
[productWebView loadRequest:urlRequest];
NSLog(#"Google loaded");
The entirety of ProductWebView.h is as follows:
#import <UIKit/UIKit.h>
#interface ProductViewClass : UIViewController {
IBOutlet UIWebView *productWebView;
}
#property(nonatomic, retain) UIWebView *productWebView;
#end
Here's the console output:
This GDB was configured as "x86_64-apple-darwin".Attaching to process 52523.
2011-01-30 19:18:28.907 FairCom[52523:40b] *** Terminating app due to uncaught exception 'NSUnknownKeyException', reason: '[<UIViewController 0x4d06eb0> setValue:forUndefinedKey:]: this class is not key value coding-compliant for the key productWebView.'
*** Call stack at first throw:
(
0 CoreFoundation 0x00da8be9 __exceptionPreprocess + 185
1 libobjc.A.dylib 0x00efd5c2 objc_exception_throw + 47
2 CoreFoundation 0x00da8b21 -[NSException raise] + 17
3 Foundation 0x000296cf _NSSetUsingKeyValueSetter + 135
4 Foundation 0x0002963d -[NSObject(NSKeyValueCoding) setValue:forKey:] + 285
5 UIKit 0x004a88d6 -[UIRuntimeOutletConnection connect] + 112
6 CoreFoundation 0x00d1f2cf -[NSArray makeObjectsPerformSelector:] + 239
7 UIKit 0x004a72ed -[UINib instantiateWithOwner:options:] + 1041
8 UIKit 0x004a9081 -[NSBundle(UINSBundleAdditions) loadNibNamed:owner:options:] + 168
9 UIKit 0x00361a94 -[UIViewController _loadViewFromNibNamed:bundle:] + 70
10 UIKit 0x0035f709 -[UIViewController loadView] + 120
11 UIKit 0x0035f5e3 -[UIViewController view] + 56
12 UIKit 0x00372230 -[UITabBarController transitionFromViewController:toViewController:transition:shouldSetSelected:] + 120
13 UIKit 0x00370d86 -[UITabBarController transitionFromViewController:toViewController:] + 64
14 UIKit 0x00372b7e -[UITabBarController _setSelectedViewController:] + 263
15 UIKit 0x003729ed -[UITabBarController _tabBarItemClicked:] + 352
16 UIKit 0x002b1a6e -[UIApplication sendAction:to:from:forEvent:] + 119
17 UIKit 0x004af1f2 -[UITabBar _sendAction:withEvent:] + 422
18 UIKit 0x002b1a6e -[UIApplication sendAction:to:from:forEvent:] + 119
19 UIKit 0x003401b5 -[UIControl sendAction:to:forEvent:] + 67
20 UIKit 0x00342647 -[UIControl(Internal) _sendActionsForEvents:withEvent:] + 527
21 UIKit 0x0034016c -[UIControl sendActionsForControlEvents:] + 49
22 UIKit 0x002b1a6e -[UIApplication sendAction:to:from:forEvent:] + 119
23 UIKit 0x003401b5 -[UIControl sendAction:to:forEvent:] + 67
24 UIKit 0x00342647 -[UIControl(Internal) _sendActionsForEvents:withEvent:] + 527
25 UIKit 0x003411f4 -[UIControl touchesEnded:withEvent:] + 458
26 UIKit 0x002d60d1 -[UIWindow _sendTouchesForEvent:] + 567
27 UIKit 0x002b737a -[UIApplication sendEvent:] + 447
28 UIKit 0x002bc732 _UIApplicationHandleEvent + 7576
29 GraphicsServices 0x016dea36 PurpleEventCallback + 1550
30 CoreFoundation 0x00d8a064 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE1_PERFORM_FUNCTION__ + 52
31 CoreFoundation 0x00cea6f7 __CFRunLoopDoSource1 + 215
32 CoreFoundation 0x00ce7983 __CFRunLoopRun + 979
33 CoreFoundation 0x00ce7240 CFRunLoopRunSpecific + 208
34 CoreFoundation 0x00ce7161 CFRunLoopRunInMode + 97
35 GraphicsServices 0x016dd268 GSEventRunModal + 217
36 GraphicsServices 0x016dd32d GSEventRun + 115
37 UIKit 0x002c042e UIApplicationMain + 1160
38 FairCom 0x00001be0 main + 102
39 FairCom 0x00001b71 start + 53
40 ??? 0x00000001 0x0 + 1
)
terminate called after throwing an instance of 'NSException'
sharedlibrary apply-load-rules all
(gdb)
Thanks for your help!
You're loading a nib. In that nib, you have an outlet named productWebView that's hooked up, presumably to a web view. The exception you're seeing is telling you that the outlet productWebView doesn't actually exist. Here's where it gets weird. The error says the object <UIViewController 0x4d06eb0> is the one that has this missing outlet. The weird bit is where it says UIViewController instead of the name of an actual view controller subclass. It sounds like you have a nib where the File's Owner is set up as one of your view controller subclasses, but at runtime you're actually just using an instance of UIViewController directly. You should verify that all the view controllers representing tabs in your tab bar controller are actual correct subclasses of UIViewController instead of just an instance of UIViewController itself.

Resources