iphone,ios,uiviewcontrollerRelated issues-Collection of common programming errors
scottoliver
iphone objective-c ios nsurlconnection
I have been working on my first app for some time now, but it seems that I am missing something here. The code below was originally only in my app delegate; I just added a refresh button in the first view controller in order to refresh the data the app uses, so my first idea was to call the app delegate code again inside the view controller, but the NSURLConnection delegate methods did not fire. Now I have added the code to the view controller (and also kept it in the app delegate) and the deleg
collapsar
iphone ios flash air flash-cs6
i am trying to publish an ios application using adobe flash cc on mac and flash professional cs6 on windows.when i publish my application using cs6 ( air sdk 3.7, air sdk 3.6 ) on windows ipa is created and installed only on jail-break phone and when i try to install jailed phone its simply shows application failed to install.when i start to publish with flash professional CC on mac (Size of Ram is 768MB) ipa is not created but the following errors are shown:”Restore windowsThe application “ja
JonathanHayward
iphone ios objective-c event-handling ios-simulator
I am working through the “iPhone introduction for programmers” tutorial at http://www.raywenderlich.com/21320/objectively-speaking-a-crash-course-in-objective-c-ios6, and my present project is at http://JonathansCorner.com/project/Quotes.tgz. The tutorial’s focus is on providing an iPhone app that randomly displays one of several quotes in a Text View when you click on a Button. Later on the tutorial pushes further by defining properties and storing and retrieving XML, but I’m at the first “Let
mattsven
iphone objective-c css3 ios6 uiwebview
When using UIWebView and CSS3 Columns, if I select text that is split/broken by a column break, then that UIWebView has a seizure and starts behaving…erratically.Since the text or element is broken by the column break, UIWebView seems to get confused, and does not know which text rectangle to select – the one in the column the text break ends in, or the one it starts in. Here’s a very rough representation of what I’m trying to relate:The dark portion is scrolled outside the viewport of the iPh
user2704346
java iphone maven tomcat web
I have configured a web app to be deployed from my development machine using maven, tomcat 7.0.42, on Ubuntu 12.04 with this build in my pom.xml: <build><sourceDirectory>src</sourceDirectory><plugins><plugin><artifactId>maven-compiler-plugin</artifactId><version>3.0</version><configuration><source>1.7</source><target>1.7</target></configuration></plugin><plugin><artifactId>maven-war-plugi
MarqueIV
iphone ios4 remote-control
Ok, I’m trying to let a user choose songs from their iPod library to listen to, but I still want to receive remote control notifications (headphones, lock screen osd, etc.) in my app so I can do some extra things. So far I can get either iPod music playing, or headphone events, but not both simultaneously.Here’s what I know so far…If you use the MPMusicPlayer, you can easily have programmatic access to the entire music library. However, it, not your app, receives the remote notifications reg
Hubert Wang
ios iphone facebook acaccount
I found an weird problem of iOS account setting. When I working on ACAccount renew issue, I found that if users login facebook in device setting after my app in installed, my app will not be able to gain access to facebook account.To be precise, my app will not be shown on the “ALLOW THESE APPS TO USE YOUR ACCOUNT”. Therefore, I’ve done some tests about this issue:(1). Facebook login after the app installed -> not shown(1-1). Remove the app and reinstall -> not shown(2). Facebook re-login after
Gillian Lo Wong
android iphone web-applications mobile user-agent
Many Mobile devices like my android phone have a ‘request desktop site’ option. I’m in the process of building mobile websites and want to make that native feature work.What is expected on our end as developers? Is there a GET request for example: leave_mobile=1 or is it the device itself changing the user-agent to trick the application thinking its just another desktop?
Travis Russi
javascript ios iphone facebook trigger.io
tl;dr;Issue 1: iOS simulator would hang when trying to facebook.authorize. Safari would open with the facebook mobile URL, but the page would not render.Solution 1: Mis-spelled the permission (publish_actions). Make sure the permissions and audience are spelled properly.Issue 2: iOS simulator (7.0.3) would complete the facebook.authorize process, but the same code on my iPhone 5 (7.0.4) would always return ‘Login failed’. Here’s a screencast of the issue: http://youtu.be/yQiYMFH5y3USolution 2
Mobster
iphone ios sqlite3 titanium-mobile titanium-modules
-(id)select:(NSString *)original_query {sqlite3_stmt *statement;const char * converted = [original_query UTF8String];NSLog(@”[INFO] converted char = %@”, converted);if (sqlite3_prepare_v2(db, converted, -1, &statement, NULL) != SQLITE_OK) {@throw [NSException exceptionWithName: @”DB Encriptor” reason: [NSString stringWithFormat: @”Query \”%s\” has failed, we could not execute the SQL statement. ‘%s'”, converted, sqlite3_errmsg(db) ] userInfo: nil];}else {@try {…}@catch (NSException * e) {
scottoliver
iphone objective-c ios nsurlconnection
I have been working on my first app for some time now, but it seems that I am missing something here. The code below was originally only in my app delegate; I just added a refresh button in the first view controller in order to refresh the data the app uses, so my first idea was to call the app delegate code again inside the view controller, but the NSURLConnection delegate methods did not fire. Now I have added the code to the view controller (and also kept it in the app delegate) and the deleg
kova
ios objective-c xcode
By error I disabled use auto layout in my storyboard and when I want to re enable it again the Xcode crashes. I need help please! It’s very important….The error is: Process: Xcode [315] Path: /Applications/Xcode.app/Contents/MacOS/Xcode Identifier: com.apple.dt.Xcode Version: 5.0.2 (3335.32) Build Info: IDEApplication-3335032000000000~4 App Item ID: 497799835 App External ID: 106632651 Code Type: X86-64 (Native) Parent Process: launchd [133] User
collapsar
iphone ios flash air flash-cs6
i am trying to publish an ios application using adobe flash cc on mac and flash professional cs6 on windows.when i publish my application using cs6 ( air sdk 3.7, air sdk 3.6 ) on windows ipa is created and installed only on jail-break phone and when i try to install jailed phone its simply shows application failed to install.when i start to publish with flash professional CC on mac (Size of Ram is 768MB) ipa is not created but the following errors are shown:”Restore windowsThe application “ja
JoMo Apps
javascript android ios eclipse phonegap
I am developing an app for my work (social housing) and I want it to be able to allow the user to take a photo and attach it to an email so they can send it to us (pictures of repairs etc)I’m using Phonegap and Eclipse as I want the app to be cross platform but am testing in Android primarily at the moment. Is there a way to do this? I am currently using the code below with no avail. <script typr=”text/javascript” charset=”utf-8″>function camera(){navigator.camera.getPicture(onSuccess, onF
user691285
ios objective-c xcode
Hi I have problem with one of my projects and xcode 5.0.2 , xcode crashes on every atempt to open project. All other projects works fine. I tried checking out new version of project, reinstalling xcode, couple of other solutions from stackoverflow. Funny thing is that this project works fine on my coworkers machines it even works when I switch to other account on the same machine. Here is my crash log:Process: Xcode [2390] Path: /Applications/Xcode.app/Contents/MacOS/Xcode Id
Dan
javascript ios uiwebview monotouch onerror
Here’s an answer for a similar question in Objective C but I’m not sure what’s the right way to translate it to MonoTouch.Basically, I want to be able to catch JavaScript errors and know at least filename and line number-unfortunately, window.onerror doesn’t give this crucial information.In particular, I’m not sure if I should expose a native library or if I can write this in pure MonoTouch.
Rajaraman
ios webrtc
I am trying to create an iOS application using the compiled WebRTC iOS libraries from http://webrtc.googlecode.com/svn/trunk/ and currently my backend server supports only DTLS. Now when I try to set the remote description it returns the following errorWarning(webrtcsession.cc:146): Session description must have SDES when DTLS disabled. Error(webrtcsession.cc:268): SetRemoteDescription failed: Called with an SDP without SDES crypto and DTLS disabled locally.but I set DtlsSrtpKeyAgreement = true
Ryan Tensmeyer
ios objective-c crash breakpoints xcode5.1
I have been working on an App today and have been able to debug it. All of the sudden I can’t use breakpoints without Xcode 5.1 crashing. It will stop on the breakpoint, look like it’s trying to display the local variables in the bottom left window, and then crash. This is the crash report:Process: Xcode [8084] Path: /Applications/Xcode.app/Contents/MacOS/Xcode Identifier: com.apple.dt.Xcode Version: 5.1 (5084) Build Info: IDEFrameworks-5084000000000000~21 Ap
JonathanHayward
iphone ios objective-c event-handling ios-simulator
I am working through the “iPhone introduction for programmers” tutorial at http://www.raywenderlich.com/21320/objectively-speaking-a-crash-course-in-objective-c-ios6, and my present project is at http://JonathansCorner.com/project/Quotes.tgz. The tutorial’s focus is on providing an iPhone app that randomly displays one of several quotes in a Text View when you click on a Button. Later on the tutorial pushes further by defining properties and storing and retrieving XML, but I’m at the first “Let
user868643
ios audiounit avaudiosession avaudiosessiondelegate
I am trying to acquire microphone while the app is in the background. I am using audio unit technology and able to record audio while in background. But once my AudioSession gets interrupted, I am unable to restart the AudioSession with app in the background. Note: I am able to restart the AudioSession if the app is in foreground. Here is the code corresponding to interruption: – (void) beginInterruption {[[AVAudioSession sharedInstance] setActive:NO error:&error];AudioOutputUnitStop(m_aud
Ray White
uiviewcontroller uinavigationcontroller uitableviewcontroller
New to Xcode, new to Obj-C… not new to programming. I have an iPhone storyboard hierarchy like the one below, and am expecting the UITableViewController to automatically open the UIViewController when I tap on a table item. It doesn’t.UINavigationController- UITableViewController (derived class)- UIViewController (derived class)I assumed that because I dragged a link named “Manual Segue, push” from the UITableViewController to the UIViewController in the IB that an automatic connection was m
Alex Stone
objective-c delegates uiviewcontroller self
I have 2 UIViewControllers in a UITabBar and would like to create a facade for one of my UIViewControllers, and am running into issues when trying to do this://within the 2nd view controller, that has not been displayed yet: -(void)startApp {locationManager.delegate = self;[locationManager startUpdatingLocation];}I’m trying//within the first view controller:[delegate startApp]What does “self” refer to in the example above? If I set a breakpoint, I see that the callback within the 2nd view contro
OpenLearner
iphone objective-c ipad uiviewcontroller uinavigationcontroller
For a controller that is pushed by a nav controller, if in its desired init method you create the details of the pushed controller’s view, my understanding is that if the view is removed later because it is offscreen (due to low memory, for example), you may never see it again since the init is only called once when loading the view controller, and subsequent pushes may show nothing. It would seem a better place for this view setup is in the viewDidLoad or viewWillAppear, that way it will be rec
Dave
ipad uiviewcontroller ipad-splitview uiinterfaceorientation
I am presenting MFMailComposeViewController as modal from a view controller (lets call it xyz) added to nav stack. When user clicks on cancel button, the MFMailComposeViewController is dismissed. This works fine when xyz is added to nav stack in portrait/landscape mode and the device orientation doesn’t change until after cancel is clicked. present modal – alloc init MFMailComposeViewController on a button tap[self.navigationController presentModalViewController:mailController animated:NO];dismi
César Bustíos
iphone ios xcode uiviewcontroller ios5
All I need is to view a UIView controller in same storyboard file manually with code. I use storyboard to make all forms and connections. My application starts in navigation controller, which provides me access to UIView (LoginViewController) and then it goes to tab bar controller, which provides 4 UIViews. According to every UIView I have .h and .m files. I know about segue method, it is simple, but I need manual method. Maybe I am doing something wrong.I was trying to use this method for pushi
BoyGeneral
iphone ipad uiviewcontroller orientation
I’m developing a program based iPad. I created new modal UIViewController as formsheet mode not full screen. And to resize the view, i used following codes. …MyController* controller = [[MyController alloc] init];controller.modalPresentationStyle = UIModalPresentationFormSheet;[self presentModalViewController : controller animated: YES];UIInterfaceOrientation orientation = [UIApplication sharedApplication].statusBarOrientation;if ( UIInterfaceOrientationIsPortrait(orientation) )controller.view
Michael Nana
ios objective-c uiviewcontroller
I’m learning iOS programming right now and I started off building an app. So right now I’m working on registering a user which sends the details of the user to a server and then responds with a json array. The result can be true or false. Now what I want to do is if the result is true, open up a new view controller. I searched online and on stackoverflow and I did thisif([operation boolValue] == 0){NSLog(@”Account Registered: %s”,”Yes”);[self.navigationController pushViewController:MainViewContr
spd
uiviewcontroller rotation ios5
I am developing an iPhone application. In this application, UIViewController (vc1) presents another UIViewController (vc2). vc1 supports both Portrait and Landscape orientations; vc2 supports only Portrait orientation.When vc2 is presented, it asks vc1: shouldAutorotateToInterfaceOrientation: and this returns YES 2.In iOS5(Beta 7) willRotateToInterfaceOrientation:, didRotateFromInterfaceOrientation: are not getting called for this sequence. But, this works fine in iOS4. Is this a bug in iOS5?Tha
Michael Rowe
uiviewcontroller methods uitabview
I am working on my first simple tabview controller app. The first tab is a setup tab, and I just had a tester provide an unexpected use case. In order to address this use case, I need to execute when the user is leaving the view and before I load the next one. Running code in the next view is too late.What method is called from the current viewController at the point the user selects the TabView Controller to switch views?I’ve tried using viewWillDisappear as the point to execute my code, but
mutatron
iphone uiviewcontroller
I was using a class, MapMultiController, which extends UIViewController, and is instantiated from inside my ListViewController, which also extends UIViewController, like so:@interface MapMultiController : UIViewController <UINavigationControllerDelegate, UINavigationBarDelegate> {MKMapView *mapView;UISegmentedControl *barStyleSegControl;bool wasUpdated; }and then this:MapMultiController *controller = [[MapMultiController alloc] initWithNibName:@”MapMultiController
Web site is in building