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’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:
Justin Boo
iphone objective-c exception-handling production-environment 2013-12-3 4:35:22
In advance, please excuse my lack of understanding for iPhone/Objective-C Best Practices; I come from a .NET/C# background.Although, I’ve read many posts regarding exception handling for the iPhone, I’m still not exactly clear on what most people do for production code. Also, I haven’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
Chris Markle
objective-c iphone twitter-api 2013-12-2 23:30:32
I 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 =@””;longitude.text =@””;locmanager = [[CLLocationManager alloc] init]; [locmanager setDelegate:self]; [locmanager
Erik
iphone ios objective-c 2013-12-2 19:57:03
I am new to i phone programming.Using below code i getting response form webservice NSString *soapMessage=[NSString stringWithFormat:@”<?xml version=\”1.0\” encoding=\”utf-8\”?>\n””<soap:Envelope xmlns:soap=\”http://schemas.xmlsoap.org/soap/envelope/\”>\n””<soap:Body>\n””<OnlineStatus xmlns=\”http://tempuri.org/\”>\n””<CafeName>Cyber Cafe Name</CafeName>\n””<FromDate>2012-03-01</FromDate>\n””<ToDate>2013-05-03</ToDate></OnlineStatus&
bright
iphone resources monotouch embedded-resource 2013-12-2 13:07:49
I’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:<ItemGroup><EmbeddedResource Include=”MapMenu\Resources\MapMenu.resx”><Generator>ResXFileCodeGenerator</Generator><LastGenOutput>MapMenu.Designer.cs</LastGenOutput></EmbeddedResource></ItemGroup>The .resx file itself has an entry like this:<data name=”Main_Menu” type=”System.Resources.ResXFileRef, S
Tim Post
iphone admob adwhirl 2013-12-2 13:03:16
Hello 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
oasisweng
javascript html iphone objective-c xcode 2013-12-2 11:09:30
This 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:@”document.getElement
Nick Cartwright
iphone objective-c xcode cocos2d 2013-12-2 8:37:56
i 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() >= 0.5) {sign = -1;}float hurry = 0.0f;if (CCRANDOM_0_1() <= 0.1) {hurry = 1.0f;}switch (birdType) {case BirdType1:vx = 1.0f * sig
Vladimir
iphone cocoa iad 2013-12-2 4:31:16
I 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
Bill Burgess
iphone ios uibarbuttonitem unrecognized-selector 2013-12-2 1:55:31
I have an app in the app store that I’m using Flurry analytics on. And I keep getting an unhandled exception error from time to time that I can’t figure out.NSInvalidArgumentException: -[UIBarButtonItem setTintColor:]: unrecognized selector sent to instance 0x177b20 Msg: Application crashedWhat I can’t figure out is, I’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
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’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:
Camputer
ios monotouch uibutton 2013-12-2 20:35:29
I 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 ‘[Register(“MyButton”)]’ 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
Erik
iphone ios objective-c 2013-12-2 19:57:03
I am new to i phone programming.Using below code i getting response form webservice NSString *soapMessage=[NSString stringWithFormat:@”<?xml version=\”1.0\” encoding=\”utf-8\”?>\n””<soap:Envelope xmlns:soap=\”http://schemas.xmlsoap.org/soap/envelope/\”>\n””<soap:Body>\n””<OnlineStatus xmlns=\”http://tempuri.org/\”>\n””<CafeName>Cyber Cafe Name</CafeName>\n””<FromDate>2012-03-01</FromDate>\n””<ToDate>2013-05-03</ToDate></OnlineStatus&
Emil Elkjær Nielsen
c# ios exception httpwebrequest xamarin 2013-12-2 17:32:32
I 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
Bill Burgess
iphone ios uibarbuttonitem unrecognized-selector 2013-12-2 1:55:31
I have an app in the app store that I’m using Flurry analytics on. And I keep getting an unhandled exception error from time to time that I can’t figure out.NSInvalidArgumentException: -[UIBarButtonItem setTintColor:]: unrecognized selector sent to instance 0x177b20 Msg: Application crashedWhat I can’t figure out is, I’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
jesmith
android ios url-scheme 2013-12-2 1:23:59
We 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’t have our app installed.In iOS, we do this:setTimeout(function() {window.location =”itms://itunes.apple.com/us/app/kaon-v-stream/id378890806?mt=8&uo=4″; }, 25);window.location = “vstream:view?code=…stuff…”;If the window.location assignment fails, the timeout jumps over the App Store before the dialog box comes
Joachim Prinsloo
c# iphone ios monotouch monodevelop 2013-12-1 20:10:11
Hopefully 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
madLokesh
ios uitableview uitableviewcell uikit 2013-12-1 16:50:08
I 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:@”1″]) {test=@”Already Member of the group”;}el
Akrambek
ios uinavigationcontroller monotouch 2013-12-1 16:21:17
I have an issue with a UINavigationController. This is the code I’m using:using System.Drawing;using MonoTouch.Foundation; using MonoTouch.UIKit;namespace SalesOrderTest {public partial class RootViewConroller : UIViewController{public RootViewConroller () : base (“RootViewConroller”, null){this.Title = NSBundle.MainBundle.LocalizedString (“Main”, “Main”);this.TabBarItem.Image = UIImage.FromBundle (“Images/first”);}public override void DidReceiveMemoryWarning (){// Releases the view if it doesn’
theory
objective-c cocoa-touch ios memory stack-trace 2013-12-1 14:09:53
I 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
Akrambek
ios uinavigationcontroller monotouch 2013-12-1 16:21:17
I have an issue with a UINavigationController. This is the code I’m using:using System.Drawing;using MonoTouch.Foundation; using MonoTouch.UIKit;namespace SalesOrderTest {public partial class RootViewConroller : UIViewController{public RootViewConroller () : base (“RootViewConroller”, null){this.Title = NSBundle.MainBundle.LocalizedString (“Main”, “Main”);this.TabBarItem.Image = UIImage.FromBundle (“Images/first”);}public override void DidReceiveMemoryWarning (){// Releases the view if it doesn’
mentorship
objective-c uinavigationcontroller console uibutton subview 2013-11-14 12:47:30
While 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: “SEM2REDO[13487:b603] Application tried to push a nil view controller on target <UINavigationController: 0x4ea5be0>”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 ‘NSInternalInco
Ashmanq
uitableview uinavigationcontroller uinavigationbar 2013-11-14 12:20:48
I 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
Brian Hemmelman
ios uiviewcontroller uinavigationcontroller uinavigationbar uinavigationitem 2013-11-14 9:58:43
I’ve searched and found several posts concerning how to remove a view from the navigation controller stack. I’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
max
ios uiviewcontroller uinavigationcontroller uiwindow appdelegate 2013-11-14 7:45:56
i 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 ‘NSInval
Manni
iphone objective-c ios interface-builder uinavigationcontroller 2013-11-13 18:53:06
In my iOS application, I want to provide a settings-view. “presentModalViewController” works very well:ViewSettings *controller = [[ViewSettings alloc] initWithNibName:@”ViewSettings” 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
OshriALM
iphone ios xcode uinavigationcontroller 2013-11-13 13:32:13
in 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:@”Documents”]stringByAppendingPathComponent:@”favorites.plist”];NSData *data = [[NSData alloc]initWithContentsOfFile:filePath];NSKeyedUnarchiver *unArchiver = [[NSKeyedUnarchiver alloc]initForReadingWithData:data];self.t
n_yanev
iphone uitableview uinavigationcontroller 2013-11-13 13:07:01
I 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 <UIKit/UIKit.h>@interface NavAppDelegate : NSObject <UIApplicationDelegate> {}@property (nonatomic, retain) IBOutlet UIWindow *window;@property (nonatomic, retain) IBOutlet UINavigationController *navigationController;@endNavAppDelegate.mimport “NavAppDelegate.h”@implementation NavAppDeleg
benhowdle89
iphone objective-c uitableview uinavigationcontroller 2013-11-13 12:52:46
I 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’ve found the problem but need some help fixing it:- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath {NSManagedObject *selectedObject = [[self fetchedResultsController] objectAtIndexPath:index
Mytheral
ios ipad uiviewcontroller uinavigationcontroller 2013-11-13 8:23:27
The Crash:-[UIImageView setParentViewController:]: unrecognized selector sent to instance 0x58701e * Termintating app due to uncaught execption ‘NSInvalidArgumentExecption’, reason: ‘-[UIImageView setParentViewController:]: unrecognised selector sent to instance 0x58701e0’This occurs when I’m trying to push a custom UIViewController that is made without IB.When I do this with IB it works but it’s not exactly what I need.What is being called for my delegate-(void)switchToTrailerOne { CGsize scre
shaik riyaz
ios ios6 segue uistoryboardsegue 2013-11-14 6:04:46
I 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:@”linktoviewmeetingitem” sender:tableView]; }} – (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {if ([segue.identifier isEqualToString:@”li
hook38
objective-c ios exception uiviewcontroller segue 2013-11-13 5:57:17
I am trying to do a conditional segue. But I get:Terminating app due to uncaught exception ‘NSInvalidArgumentException’, reason: ‘-[UILabel length]: unrecognized selector sent to instance 0x763c8e0’The design is, when I pressed a button, the app will retrieve some data from the internet using AFNetworking’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
funkycoldmedia
ios segue 2013-11-12 13:03:23
I 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, – (void)prepareForSegue:(UIStory
Justin Young
storyboard customization uipickerview segue viewcontroller 2013-11-12 11:56:52
I 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 “Back” button in the navigation bar it crashes with the following e
Stef Geelen
objective-c delegates tableview uistoryboard segue 2013-11-12 5:52:26
This is my situation. I’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
Slider257
data uitextfield ios7 segue uistoryboardsegue 2013-11-12 3:10:06
I’m stuck on something that seems fairly simple and looking for any advice I can get. I’m attempting to pass data from several text fields in one View Controller to show up as Label’s text in another View Controller.I’ve been following several other threads here relating to this issue, and I feel like I’m doing it the exact same way, yet getting a CTD every time I attempt to transition the app. Here’s my setup;In Storyboard, created a Segue between the VCs and gave it a custom Identifier (“Pre
null
ios storyboard segue 2013-11-11 8:35:49
I 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
Jim
ios objective-c uiviewcontroller segue 2013-11-11 7:46:30
I 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
danielbeard
iphone ios objective-c ios6 segue 2013-11-11 2:01:27
I 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
London
objective-c ios ios5 orientation segue 2013-11-10 20:06:13
I 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 “paging like animation” 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