{"id":1929,"date":"2022-08-30T15:20:37","date_gmt":"2022-08-30T15:20:37","guid":{"rendered":"https:\/\/unknownerror.org\/index.php\/2013\/12\/03\/iphoneiosuinavigationcontrollersegueview-the-original-page-collection-of-common-programming-errors\/"},"modified":"2022-08-30T15:20:37","modified_gmt":"2022-08-30T15:20:37","slug":"iphoneiosuinavigationcontrollersegueview-the-original-page-collection-of-common-programming-errors","status":"publish","type":"post","link":"https:\/\/unknownerror.org\/index.php\/2022\/08\/30\/iphoneiosuinavigationcontrollersegueview-the-original-page-collection-of-common-programming-errors\/","title":{"rendered":"iphone,ios,uinavigationcontroller,segueView the original page-Collection of common programming errors"},"content":{"rendered":"<h3>UnKnown Error<\/h3>\n<ul>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/ff650b0c0a059417a78d557088623294?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nMarc<br \/>\niphone objective-c ios avassetexportsession cmtime 2013-12-3 14:53:41<br \/>\nI am trying to cut an audio file for an iPhone project. I can cut it and save it, but any fade in \/ fade out that I try to apply doesn&#8217;t work, the audio file is just saved cutted but not faded.I am using the following code:\/\/ \/\/ NO PROBLEMS TO SEE HERE, MOVE ON \/\/NSArray *documentsFolders = NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES);int currentFileNum = 10;NSURL *url = [NSURL fileURLWithPath: [[documentsFolders objectAtIndex:0] stringByAppendingPathComponent:<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/810d33b80b887dfccc8ff2cf6865ed73?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nJustin Boo<br \/>\niphone objective-c exception-handling production-environment 2013-12-3 4:35:22<br \/>\nIn advance, please excuse my lack of understanding for iPhone\/Objective-C Best Practices; I come from a .NET\/C# background.Although, I&#8217;ve read many posts regarding exception handling for the iPhone, I&#8217;m still not exactly clear on what most people do for production code. Also, I haven&#8217;t been able to find any open source apps with error handling that I would normally expect. Here are my questions:1) If an unexpected result occurs that would cause the application to eventually fail, would you throw<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/50adc37a6c4d5923e3c34250f0694c70?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nChris Markle<br \/>\nobjective-c iphone twitter-api 2013-12-2 23:30:32<br \/>\nI want to wait for latitude.text and longtitude.text to be filled in before sending a tweet, this code works fine, but I would rather not put the tweeting part in locationManager because I also want to sometimes update the current location without sending a tweet. How can I make sure the txt gets filled in before sending the tweet without doing this?- (IBAction)update {latitude.text =@&#8221;&#8221;;longitude.text =@&#8221;&#8221;;locmanager = [[CLLocationManager alloc] init]; [locmanager setDelegate:self]; [locmanager<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/c4f844fc509121ae44b547677c59360c?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nErik<br \/>\niphone ios objective-c 2013-12-2 19:57:03<br \/>\nI am new to i phone programming.Using below code i getting response form webservice NSString *soapMessage=[NSString stringWithFormat:@&#8221;&lt;?xml version=\\&#8221;1.0\\&#8221; encoding=\\&#8221;utf-8\\&#8221;?&gt;\\n&#8221;&#8221;&lt;soap:Envelope xmlns:soap=\\&#8221;http:\/\/schemas.xmlsoap.org\/soap\/envelope\/\\&#8221;&gt;\\n&#8221;&#8221;&lt;soap:Body&gt;\\n&#8221;&#8221;&lt;OnlineStatus xmlns=\\&#8221;http:\/\/tempuri.org\/\\&#8221;&gt;\\n&#8221;&#8221;&lt;CafeName&gt;Cyber Cafe Name&lt;\/CafeName&gt;\\n&#8221;&#8221;&lt;FromDate&gt;2012-03-01&lt;\/FromDate&gt;\\n&#8221;&#8221;&lt;ToDate&gt;2013-05-03&lt;\/ToDate&gt;&lt;\/OnlineStatus&amp;<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/0935ce0c6638274876e3026b70f88546?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nbright<br \/>\niphone resources monotouch embedded-resource 2013-12-2 13:07:49<br \/>\nI&#8217;m able to load and access resx files in Simulator builds of my iPhone app built using MonoTouch. The resx file entry in the csproj file looks like:&lt;ItemGroup&gt;&lt;EmbeddedResource Include=&#8221;MapMenu\\Resources\\MapMenu.resx&#8221;&gt;&lt;Generator&gt;ResXFileCodeGenerator&lt;\/Generator&gt;&lt;LastGenOutput&gt;MapMenu.Designer.cs&lt;\/LastGenOutput&gt;&lt;\/EmbeddedResource&gt;&lt;\/ItemGroup&gt;The .resx file itself has an entry like this:&lt;data name=&#8221;Main_Menu&#8221; type=&#8221;System.Resources.ResXFileRef, S<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/84432a12912341ff38e157b3d2f4d145?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nTim Post<br \/>\niphone admob adwhirl 2013-12-2 13:03:16<br \/>\nHello Guys, Now I am doing the adwhirl development. When downloaded the latest AdWhirl and AdMob SDK. Read and done with the instructions in the AdWhirlSDKInstructionsforiPhone.pdf, I receive below error message. 2010-10-25 23:52:20.774 iAdWhirle[2017:207] Unable to fill ad request. This is a common situation.2010-10-25 23:52:20.825 iAdWhirle[2017:207] Failed to receive ad from admob, will use backup. Error: no error2010-10-25 23:52:24.881 iAdWhirle[2017:207] Unhandled error (no delegate or del<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/5fcbe035583117d7299c86439f1b3c76?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\noasisweng<br \/>\njavascript html iphone objective-c xcode 2013-12-2 11:09:30<br \/>\nThis is the code I am currently using to insert an image, however, my webview loses its focus after the insertion made. But most oddly, I also have a notification set for keyboardWillShowNotification; and this notification is invoked after the insertion but no keyboard is present.Can anyone give any solution on this problem?\/\/allow me to programmatically bring up keyboard _changWeiBo.keyboardDisplayRequiresUserAction = NO; [_changWeiBo stringByEvaluatingJavaScriptFromString:@&#8221;document.getElement<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/b167c29c2163889cd982b53c69f5dff5?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nNick Cartwright<br \/>\niphone objective-c xcode cocos2d 2013-12-2 8:37:56<br \/>\ni am making a game similar to fruit ninja. birds flying down the water and then up (just like fruits up side down)but some of the birds fly too far and the others too near. can someone check my code? vy should quite close to each other.(vx is not a problem)static float tuna = 10.0f; -(void) reset {float vy = 0.0f;float vx = 0.0f;int sign = 1;if (CCRANDOM_0_1() &gt;= 0.5) {sign = -1;}float hurry = 0.0f;if (CCRANDOM_0_1() &lt;= 0.1) {hurry = 1.0f;}switch (birdType) {case BirdType1:vx = 1.0f * sig<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/9b20dfd81d1bb5c723c22949c40ad0ed?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nVladimir<br \/>\niphone cocoa iad 2013-12-2 4:31:16<br \/>\nI am having trouble implementing ADBannerView and its delegate protocol. I implemented the following code in my view class (also made the view conform to the ADBannerViewDelegate protocol):\/\/add iAds ADBannerView *adView = [[ADBannerView alloc] initWithFrame: CGRectMake(0, 318, 320, 50)]; adView.requiredContentSizeIdentifiers = [NSSet setWithObjects: ADBannerContentSizeIdentifierPortrait, ADBannerContentSizeIdentifierLandscape, nil]; adView.delegate = self; \/\/adView.delegate = ADBannerViewDeleg<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/672085b45230f2b6b9b0453aec771f81?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nBill Burgess<br \/>\niphone ios uibarbuttonitem unrecognized-selector 2013-12-2 1:55:31<br \/>\nI have an app in the app store that I&#8217;m using Flurry analytics on. And I keep getting an unhandled exception error from time to time that I can&#8217;t figure out.NSInvalidArgumentException: -[UIBarButtonItem setTintColor:]: unrecognized selector sent to instance 0x177b20 Msg: Application crashedWhat I can&#8217;t figure out is, I&#8217;m not setting any bar button items tint color anywhere. I have a few custom views where I am setting the right bar button item, but no tint.Most of my uses of the button look like<\/li>\n<\/ul>\n<ul>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/ff650b0c0a059417a78d557088623294?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nMarc<br \/>\niphone objective-c ios avassetexportsession cmtime 2013-12-3 14:53:41<br \/>\nI am trying to cut an audio file for an iPhone project. I can cut it and save it, but any fade in \/ fade out that I try to apply doesn&#8217;t work, the audio file is just saved cutted but not faded.I am using the following code:\/\/ \/\/ NO PROBLEMS TO SEE HERE, MOVE ON \/\/NSArray *documentsFolders = NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES);int currentFileNum = 10;NSURL *url = [NSURL fileURLWithPath: [[documentsFolders objectAtIndex:0] stringByAppendingPathComponent:<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/045aa76fbb4f66740d28a54dac625698?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nCamputer<br \/>\nios monotouch uibutton 2013-12-2 20:35:29<br \/>\nI am using MonoTouch and have created a class MyButton that extends UIButton. This is actually a simplified example of the same problem I was having with a custom UIScrollView. MyButton extends UIButton and adds some methods to do something simple like increment and decrement a counter (this is just a test case). I also include &#8216;[Register(&#8220;MyButton&#8221;)]&#8217; before my class definition so that it registers with Interface Builder (IB) so that I can add a UIButton and specify its class as MyButton.What w<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/c4f844fc509121ae44b547677c59360c?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nErik<br \/>\niphone ios objective-c 2013-12-2 19:57:03<br \/>\nI am new to i phone programming.Using below code i getting response form webservice NSString *soapMessage=[NSString stringWithFormat:@&#8221;&lt;?xml version=\\&#8221;1.0\\&#8221; encoding=\\&#8221;utf-8\\&#8221;?&gt;\\n&#8221;&#8221;&lt;soap:Envelope xmlns:soap=\\&#8221;http:\/\/schemas.xmlsoap.org\/soap\/envelope\/\\&#8221;&gt;\\n&#8221;&#8221;&lt;soap:Body&gt;\\n&#8221;&#8221;&lt;OnlineStatus xmlns=\\&#8221;http:\/\/tempuri.org\/\\&#8221;&gt;\\n&#8221;&#8221;&lt;CafeName&gt;Cyber Cafe Name&lt;\/CafeName&gt;\\n&#8221;&#8221;&lt;FromDate&gt;2012-03-01&lt;\/FromDate&gt;\\n&#8221;&#8221;&lt;ToDate&gt;2013-05-03&lt;\/ToDate&gt;&lt;\/OnlineStatus&amp;<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/000efe83ebebc2c241bc4c0181157e03?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nEmil Elkj\u00e6r Nielsen<br \/>\nc# ios exception httpwebrequest xamarin 2013-12-2 17:32:32<br \/>\nI get this error when trying to send some WebRequest in Xamarin for iOS.I want to log onto a website, which works perfectly in C# visual studio for a windows client, but for iOS it gives me this error.Unhandled Exception: MonoTouch.UIKit.UIKitThreadAccessException: UIKit Consistency error: you are calling a UIKit method that can only be invoked from the UI thread.at MonoTouch.UIKit.UIApplication.EnsureUIThread () [0x00019] in \/Developer\/MonoTouch\/Source\/monotouch\/src\/UIKit\/UIApplication.cs:49 at<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/672085b45230f2b6b9b0453aec771f81?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nBill Burgess<br \/>\niphone ios uibarbuttonitem unrecognized-selector 2013-12-2 1:55:31<br \/>\nI have an app in the app store that I&#8217;m using Flurry analytics on. And I keep getting an unhandled exception error from time to time that I can&#8217;t figure out.NSInvalidArgumentException: -[UIBarButtonItem setTintColor:]: unrecognized selector sent to instance 0x177b20 Msg: Application crashedWhat I can&#8217;t figure out is, I&#8217;m not setting any bar button items tint color anywhere. I have a few custom views where I am setting the right bar button item, but no tint.Most of my uses of the button look like<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/2c27dffad60abea26c9e68fa4c0cdd2f?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\njesmith<br \/>\nandroid ios url-scheme 2013-12-2 1:23:59<br \/>\nWe have an app that handles a custom URL scheme (vstream:\/\/). When someone comes to a web page that has some vstream:\/\/ content, we need to redirect them to the store if they don&#8217;t have our app installed.In iOS, we do this:setTimeout(function() {window.location =&#8221;itms:\/\/itunes.apple.com\/us\/app\/kaon-v-stream\/id378890806?mt=8&amp;uo=4&#8243;; }, 25);window.location = &#8220;vstream:view?code=&#8230;stuff&#8230;&#8221;;If the window.location assignment fails, the timeout jumps over the App Store before the dialog box comes<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/14a7a905e3eeec33cf7fc19c2faa227e?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nJoachim Prinsloo<br \/>\nc# iphone ios monotouch monodevelop 2013-12-1 20:10:11<br \/>\nHopefully someone here can help me. I have upgraded to MonoTouch 5. Ever since the upgrade none of my newly created buttons work in my existing projects. All the buttons created and bound to events before the upgrade still work perfectly but as soon as I create a new button and bind it to an event, the app crashes in the simulator.The interesting part is that when I create a new project after the upgrade, and create a button in interface builder as I usually did it and bind it to an event as I u<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/i.stack.imgur.com\/ENMKX.jpg?s=32&amp;g=1\" \/><br \/>\nmadLokesh<br \/>\nios uitableview uitableviewcell uikit 2013-12-1 16:50:08<br \/>\nI am adding image in tableVIew cell but it does not show. I am using if condition to give the image to button but it does not show.Here is the code for the button adddingaddButton = [UIButton buttonWithType:UIButtonTypeCustom];addButton.Frame=CGRectMake(590,2,42,42);[addButton addTarget:self action:@selector(tab1Action:) forControlEvents:UIControlEventTouchUpInside];addButton.tag=indexPath.row;NSString*test=theData.Status;if ([test isEqualToString:@&#8221;1&#8243;]) {test=@&#8221;Already Member of the group&#8221;;}el<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/7ee474d86e4665ca4b7a7a5c1cfe4482?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nAkrambek<br \/>\nios uinavigationcontroller monotouch 2013-12-1 16:21:17<br \/>\nI have an issue with a UINavigationController. This is the code I&#8217;m using:using System.Drawing;using MonoTouch.Foundation; using MonoTouch.UIKit;namespace SalesOrderTest {public partial class RootViewConroller : UIViewController{public RootViewConroller () : base (&#8220;RootViewConroller&#8221;, null){this.Title = NSBundle.MainBundle.LocalizedString (&#8220;Main&#8221;, &#8220;Main&#8221;);this.TabBarItem.Image = UIImage.FromBundle (&#8220;Images\/first&#8221;);}public override void DidReceiveMemoryWarning (){\/\/ Releases the view if it doesn&#8217;<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/397f829eea921e02e35c37c22f9e6d3b?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\ntheory<br \/>\nobjective-c cocoa-touch ios memory stack-trace 2013-12-1 14:09:53<br \/>\nI got this symbolicated stack trace from a crash report from my iPad app (excerpt):Exception Type: EXC_CRASH (SIGABRT) Exception Codes: 0x00000000, 0x00000000 Crashed Thread: 00 ImageIO 0x34528eb4 _CGImagePluginIdentifyPNG + 0 1 ImageIO 0x34528d90 _CGImageSourceBindToPlugin + 368 2 ImageIO 0x34528bda CGImageSourceGetCount + 26 3 UIKit 0x341b8f66 _UIImageRefAtPath + 366 4 UIKit 0x342650ce -[UIImage initWithContentsOfFile:] + 50 5 UIKit<\/li>\n<\/ul>\n<ul>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/7ee474d86e4665ca4b7a7a5c1cfe4482?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nAkrambek<br \/>\nios uinavigationcontroller monotouch 2013-12-1 16:21:17<br \/>\nI have an issue with a UINavigationController. This is the code I&#8217;m using:using System.Drawing;using MonoTouch.Foundation; using MonoTouch.UIKit;namespace SalesOrderTest {public partial class RootViewConroller : UIViewController{public RootViewConroller () : base (&#8220;RootViewConroller&#8221;, null){this.Title = NSBundle.MainBundle.LocalizedString (&#8220;Main&#8221;, &#8220;Main&#8221;);this.TabBarItem.Image = UIImage.FromBundle (&#8220;Images\/first&#8221;);}public override void DidReceiveMemoryWarning (){\/\/ Releases the view if it doesn&#8217;<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/9515b92a15e7f3e2be3b0ae9c97aefea?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nmentorship<br \/>\nobjective-c uinavigationcontroller console uibutton subview 2013-11-14 12:47:30<br \/>\nWhile my application launches like normal and has no errors, when I attempt to click a button to show another view, the application closes. On the debugger console, this is the the display: &#8220;SEM2REDO[13487:b603] Application tried to push a nil view controller on target &lt;UINavigationController: 0x4ea5be0&gt;&#8221;then the second time you click it, this appears, and then the application cancels.2012-01-24 11:46:37.549 SEM2REDO[13591:b603] *** Terminating app due to uncaught exception &#8216;NSInternalInco<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/9ecd671196ba597005a1a8362bf4c3f7?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nAshmanq<br \/>\nuitableview uinavigationcontroller uinavigationbar 2013-11-14 12:20:48<br \/>\nI have a tabbed view application which uses a tab controller as the root view controller. One of the views I have is a tableview with I want to be able to edit by clicking on an add\/edit button that will make all the cells editable as well as allowing to add a cell.In the table view I have added a navigation bar and have tried to use the following code to create a button on the bar that when pressed will make all the cells editable:- (void)viewDidLoad { [super viewDidLoad];UIBarButtonItem *editB<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/d3936ef36de7bdf7babe242333c49f9d?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nBrian Hemmelman<br \/>\nios uiviewcontroller uinavigationcontroller uinavigationbar uinavigationitem 2013-11-14 9:58:43<br \/>\nI&#8217;ve searched and found several posts concerning how to remove a view from the navigation controller stack. I&#8217;ve implemented one of the techniques found here: How can I remove a view from navigation controller. However, while the view is removed from the stack, the corresponding UINavigationItem is not removed from the navigation bar so my navigation bar gets out of sync with the present view.Specifically, I have a sequence of views under the control of a Navigation Controller on my storyboard<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/4a57f523157ebdf6e5a9662d2e8754b9?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nmax<br \/>\nios uiviewcontroller uinavigationcontroller uiwindow appdelegate 2013-11-14 7:45:56<br \/>\ni m programmatically implement a list view controller when i try to run the project, i got error:2012-11-07 22:46:34.719 myTableViewControl[12021:c07] The app delegate must implement the window property if it wants to use a main storyboard file. 2012-11-07 22:46:34.722 myTableViewControl[12021:c07] -[AppDelegate setWindow:]: unrecognized selector sent to instance 0x7674e70 2012-11-07 22:46:34.723 myTableViewControl[12021:c07] *** Terminating app due to uncaught exception &#8216;NSInval<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/5fefa51faf2b3b2697a7f634c5dcf040?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nManni<br \/>\niphone objective-c ios interface-builder uinavigationcontroller 2013-11-13 18:53:06<br \/>\nIn my iOS application, I want to provide a settings-view. &#8220;presentModalViewController&#8221; works very well:ViewSettings *controller = [[ViewSettings alloc] initWithNibName:@&#8221;ViewSettings&#8221; bundle:nil]; UINavigationController *navController = [[UINavigationController alloc] initWithRootViewController:controller]; [self.navigationController presentModalViewController:navController animated:YES]; [controller release]; [navController release];Unfortunately, I have to change my running code and crea<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/f4f68c705cdbad8104434b8b06c6870b?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nOshriALM<br \/>\niphone ios xcode uinavigationcontroller 2013-11-13 13:32:13<br \/>\nin my app i have NavigationController as root, i have a navigation button as well. when im pressed the button its flip to another controller.the destination view code:- (void)viewDidLoad {[super viewDidLoad];NSString *filePath = [[NSHomeDirectory() stringByAppendingPathComponent:@&#8221;Documents&#8221;]stringByAppendingPathComponent:@&#8221;favorites.plist&#8221;];NSData *data = [[NSData alloc]initWithContentsOfFile:filePath];NSKeyedUnarchiver *unArchiver = [[NSKeyedUnarchiver alloc]initForReadingWithData:data];self.t<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/9adfaf0b1b88e4882c44013783f51325?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nn_yanev<br \/>\niphone uitableview uinavigationcontroller 2013-11-13 13:07:01<br \/>\nI want to make Navigation with 3 levels. I make the root controller and fill the table with data. But when I touch on some cell my application crash. This is part of my code:NavAppDelegate.h#import &lt;UIKit\/UIKit.h&gt;@interface NavAppDelegate : NSObject &lt;UIApplicationDelegate&gt; {}@property (nonatomic, retain) IBOutlet UIWindow *window;@property (nonatomic, retain) IBOutlet UINavigationController *navigationController;@endNavAppDelegate.mimport &#8220;NavAppDelegate.h&#8221;@implementation NavAppDeleg<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/53c5026cdb501efaa8c8f171530e51cf?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nbenhowdle89<br \/>\niphone objective-c uitableview uinavigationcontroller 2013-11-13 12:52:46<br \/>\nI have an iphone app that when the user clicks a row in a uitable, it takes the row value and downloads some data from the web to populate the next view. However if the user switches back to the first view when the data is being downloaded the app crashes. I think i&#8217;ve found the problem but need some help fixing it:- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath {NSManagedObject *selectedObject = [[self fetchedResultsController] objectAtIndexPath:index<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/e71ae3bdea74b68a3f7abcdd8155fcc1?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nMytheral<br \/>\nios ipad uiviewcontroller uinavigationcontroller 2013-11-13 8:23:27<br \/>\nThe Crash:-[UIImageView setParentViewController:]: unrecognized selector sent to instance 0x58701e * Termintating app due to uncaught execption &#8216;NSInvalidArgumentExecption&#8217;, reason: &#8216;-[UIImageView setParentViewController:]: unrecognised selector sent to instance 0x58701e0&#8217;This occurs when I&#8217;m trying to push a custom UIViewController that is made without IB.When I do this with IB it works but it&#8217;s not exactly what I need.What is being called for my delegate-(void)switchToTrailerOne { CGsize scre<\/li>\n<\/ul>\n<ul>\n<li><img decoding=\"async\" src=\"http:\/\/i.stack.imgur.com\/361PK.jpg?s=32&amp;g=1\" \/><br \/>\nshaik riyaz<br \/>\nios ios6 segue uistoryboardsegue 2013-11-14 6:04:46<br \/>\nI have two view controller think A and B.A has tableview B has back button to Awhen I click tableview cell on A viewcontrollr it move to B.- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath{ if (tableView == self.tableViewLastMinutes) {selectedRow = [indexPath row];[self performSegueWithIdentifier:@&#8221;linktoviewmeetingitem&#8221; sender:tableView]; }} &#8211; (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {if ([segue.identifier isEqualToString:@&#8221;li<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/ac0ee98f620ebb852ce092da0c5f32e0?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nhook38<br \/>\nobjective-c ios exception uiviewcontroller segue 2013-11-13 5:57:17<br \/>\nI am trying to do a conditional segue. But I get:Terminating app due to uncaught exception &#8216;NSInvalidArgumentException&#8217;, reason: &#8216;-[UILabel length]: unrecognized selector sent to instance 0x763c8e0&#8217;The design is, when I pressed a button, the app will retrieve some data from the internet using AFNetworking&#8217;s AFJSONRequestOperation. If the request succeed, it will call another UIViewController from my current UIViewController. I did my conditional start segue using this method and below are my cod<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/89d0cb1e985ce09371a12313455084f0?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nfunkycoldmedia<br \/>\nios segue 2013-11-12 13:03:23<br \/>\nI have a storyboard that hosts a collectionview, with a number of cells.once the user clicks on a cell segue to the next VIew controller ( detail View Controller).The next ViewController has a prev and a next button, and on clicking on them I want to go to the next cell in the collectionview ( where I segued out from ) How can I access that indexpath? What I did so far,I exposed an NSIndexsPath property on the detailviewcontroller, and pass that from the mainVC, &#8211; (void)prepareForSegue:(UIStory<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/58c3bc4f10192e95222a936e22d94ff2?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nJustin Young<br \/>\nstoryboard customization uipickerview segue viewcontroller 2013-11-12 11:56:52<br \/>\nI have some View Controllers embedded in a navigation controller using a storyboard.In view controller 1 I have a custom PickerView that is hidden until the user selects a text field that lets the user select their unit preference then it is hidden again. I also have other text fields that use standard number\/text inputs on controller 1. The problem comes when I do a push segue to any other View Controller then when I click the &#8220;Back&#8221; button in the navigation bar it crashes with the following e<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/37bfb2fbdc31244cec52e669c054dddc?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nStef Geelen<br \/>\nobjective-c delegates tableview uistoryboard segue 2013-11-12 5:52:26<br \/>\nThis is my situation. I&#8217;ve two table views. After searching on working with two tableviews in one view, i came to the solution to make 2 extra controllers. Namely tbl1DatasourceDelegate and tbl2DatasourceDelegate. Now when I push on a cell, it should segue to another viewController. I have this code in my tbl1DatasourceDelegate.-(void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath {PlayerNews *news = [_tableSource objectAtIndex:indexPath.row];PlayerDetailCon<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/i.stack.imgur.com\/aWxRp.gif?s=32&amp;g=1\" \/><br \/>\nSlider257<br \/>\ndata uitextfield ios7 segue uistoryboardsegue 2013-11-12 3:10:06<br \/>\nI&#8217;m stuck on something that seems fairly simple and looking for any advice I can get. I&#8217;m attempting to pass data from several text fields in one View Controller to show up as Label&#8217;s text in another View Controller.I&#8217;ve been following several other threads here relating to this issue, and I feel like I&#8217;m doing it the exact same way, yet getting a CTD every time I attempt to transition the app. Here&#8217;s my setup;In Storyboard, created a Segue between the VCs and gave it a custom Identifier (&#8220;Pre<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/23654c71d18aab6eb0da8ca1d27377d0?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nnull<br \/>\nios storyboard segue 2013-11-11 8:35:49<br \/>\nI have been spending the past two days trying to figure out this issue, so any information or thoughts on why this is happening is appreciated.So my problem is, when I add a button to my view controller in the interface builder and create the normal ibaction code the button performs as it should, I then drag and drop from the button to a view controller to create a segue, this works fine as well.The issue comes in when I run the app, the app will run fine until I push the button(note: I still ha<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/639ced0d6d8b40ff2472650a8e349145?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nJim<br \/>\nios objective-c uiviewcontroller segue 2013-11-11 7:46:30<br \/>\nI am returning to my login view using the code below. The view loads correctly and everything looks fine. All buttons work etc.JALoginViewController *loginVC = [[JALoginViewController alloc] init];UINavigationController *navigationController = [[UINavigationController alloc] initWithRootViewController:loginVC];navigationController.modalPresentationStyle = UIModalPresentationFormSheet; [self.navigationController presentModalViewController:navigationController animated:YES];However, if a user trie<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/008380b8eab5df4a15de69741d59a825?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\ndanielbeard<br \/>\niphone ios objective-c ios6 segue 2013-11-11 2:01:27<br \/>\nI am new to ios development and I am trying to create a simple test app that allows users to record and edit their pills in their medicine cabinet. I am using ios 6.1, arc and segues. Background to the error:So the user has a list of pills in their medicine cabinet, he picks one and a segue brings him to a view controller that gives him information about that pill. He then has the option to edit the info which segues him to another view controller that shows all the current info in textfields wh<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/c04418971264571b8d6cab9b3b79852d?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nLondon<br \/>\nobjective-c ios ios5 orientation segue 2013-11-10 20:06:13<br \/>\nI have a scrollview in my app and the second I scroll to the last page of my scrollview I get segued to tableviewcontroller.But in order to achieve &#8220;paging like animation&#8221; when jumping from scrollview to tableview controller I extended UIStoryboardSegue class and implemented perform method like this :- (void) perform {UIViewController *src = (UIViewController *) self.sourceViewController;UIViewController *dst = (UIViewController *) self.destinationViewController;src.view.transform = CGAffineTran<\/li>\n<\/ul>\n<p id=\"rop\"><small>Originally posted 2013-12-03 11:11:38. <\/small><\/p>","protected":false},"excerpt":{"rendered":"<p>UnKnown Error Marc iphone objective-c ios avassetexportsession cmtime 2013-12-3 14:53:41 I am trying to cut an audio file for an iPhone project. I can cut it and save it, but any fade in \/ fade out that I try to apply doesn&#8217;t work, the audio file is just saved cutted but not faded.I am using [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-1929","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/1929","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/comments?post=1929"}],"version-history":[{"count":0,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/1929\/revisions"}],"wp:attachment":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/media?parent=1929"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/categories?post=1929"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/tags?post=1929"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}