iphone,ios,xcode,xcode4,navigationitemRelated issues-Collection of common programming errors
user198725878
iphone ios sencha sencha-2
Mac-mini-2:sink eit$ sencha app build native[INFO] Deploying your application to /path/to/www/sink/build/package [INFO] Copied sdk/sencha-touch.js [INFO] Copied app.js [INFO] Copied resources/css/app.css [INFO] Copied resources/images [INFO] Copied resources/icons [INFO] Copied resources/loading [INFO] Resolving your application dependencies… [INFO] Found 139 dependencies. Concatenating all into app.js… [INFO] Processed sdk/sencha-touch.js [INFO] Minifying sdk/sencha-touch.js [INFO] Processe
Abhijeet Vaikar
automated-testing selenium iphone
Is there any similar function/ command in MonkeyTalk, like WaitForPageToLoad which is in Selenium, that lets me specify the script to wait for a screen to render before moving ahead? I checked MonkeyTalk’s language reference but could not find a way. Also searched for this issue on Google but it didn’t help me much.The iOS native app i’m testing takes some time to load and open up the home screen after login. After recording the event flow using MonkeyTalk, and running the test script, the scrip
Diggory
iphone icloud iphoto photo-stream
I’m rather confused about the ‘proper’ way to use Photo Stream and an iPhone and iPhoto.Here’s how I use iPhoto and my iPhone: (This workflow was as far as I can tell the correct way to operate before iCloud)Getting photos into iPhoto:Take photos on iPhone. Every so often connect the phone to my mac and in iPhoto import any photos and videos from the phone’s camera roll into iPhoto (deleting those photos from the camera roll once they are imported.) This means that iPhoto is the canonical stor
bneely
iphone ios youtube
Whenever I try and log into the native Youtube app on my iPhone, it reports ‘Authentication Failed” even though the details are 100% correct. Here’s what I’ve done so far:Youtube.com accepts my username and password on both the desktop and iPhone web app. I’ve reset my Youtube password I get the same results over 3G or wifi (tried multiple networks, incl. Apple Store), so it is not my carrier or ISP blocking Youtube. A friend logged in with his account and the iPhone accepted it, so it isn’t sp
John
iphone json http post
Hi I need help in making a HTTP POST connection to a web service. I am totally clueless on how to do it. I only had experienced in making a NSURLConnection whereby I pass the required input parameters as part of the URL. Now it seems different as I am only provided a website and the request JSON body.{ “lastmodified”:”String content”, “passengerId”:9223372036854775807, “password”:”String content”, “userId”:”String content” }Could anyone shed some light on this? Say the website is www.myURL/opera
Guy
iphone objective-c ios image-processing
I’m trying to combine two photos into one image (think a body with a hole in the face on top of a picture of a different person’s face). The top image has some semi-transparent pixels and some fully transparent pixels and I want to overlay it on top of a solid image.Here’s what I’m doing: I have a Context with the right size and I draw the bottom image on it, without any alpha (faceImage). On top of that I draw an image that has a transparent hole in it, with various levels of transparencies (co
Peter Hosey
iphone cocoa-touch mode silent
I would like to stop my application playing a sound if the user has switched the iPhone to silent mode. Where can I read that the phone is in silent mode? Is there some flag I can query? I noticed that some applications ignore the silent mode and some not, while I would have expected all apps to respect that silent is silent !! Any hints or input would be greatly appreciated. Thanks Al
SaamJB
iphone objective-c ios
I have a UITableViewController that when a cell is pressed, I want the controller to pop itself, and then have the controller it pop’s to, push another view controller onto the stack.I am invoking this method because the popped-to viewController is the delegate of the tableViewControllerI am currently invoking this method with a delay on it, because otherwise, everything gets screwed up waiting for the animation to end. Doing it this way seems a bit hacky and seems to me like it would fail if so
magma
iphone ipad uitableview nested uitouch
When you’re working with an atypical nested UITableViews setup – where you have an outer vertical UITableView that hosts 90° rotated UITableViews (see: Looking for a UI library to present Data horizontaly in iOS ): is there a way to make iOS process vertical and horizontal touches at the same time?I found that iOS is very clever in processing touches: horizontal touches make the relevant horizontal UITableView scroll, while a vertical swipe makes the outer UITableView scroll. Perfect.Only, I’d l
Rob Keniger
iphone cocoa-touch keyboard decimal nsdecimalnumber
iPhone/Objective-C/Cocoa newbie here. Based on a number of posts on stackoverflow, I have cobbled together an IBAction that I’m using in a basic iPhone calculator app that I’m building. The IBAction works with the numeric keypad to allow entry of decimal numbers without having to enter a decimal point. I am trying very hard to adhere to the “use NSDecimal when dealing with currency” adage although I am finding it difficult to do so like so many others who have posted questions. I am making stead
user3007125
ios extjs cordova sencha-touch-2 sencha-cmd
I’m following a simple instructions from a video on Vimeo. I upgraded my app from Sencha Touch 2.2 to 2.3. Added PhoneGap support. And now trying to build the native app. It turned out not as easy. I need help with this one:macbook-air:admin Me$ sencha app build -run nativeSencha Cmd v4.0.1.45 [INF] [INF] init-plugin: [INF] [INF] cmd-root-plugin.init-properties: [INF] [INF] init-properties: [INF] [INF] init-sencha-command: [INF] [INF] init: [INF] [INF] app-build-impl: [INF] [INF] -before-init-lo
Thomas Muller
ios cocoa unity3d switch-statement integration
I am building an app for iPad composed of two parts:a user interface built with cocoa a Unity sceneAnd I needed to find a way of integrating both parts and have them communicate with each other.After a lot of research the best approach that I have found was one based on this tutorialBasically, I have two UIWindows on my app delegate, one where I keep the hierarchy of all cocoa viewcontrollers and the other is the Unity window. When I want to switch which window is visible I just call [someWindow
Run Loop
ios facebook
I followed Facebook Scruptious example and have an issue with authorizing the app. When I run the app and the user is logged into the native Facebook app, the authorization of the app works perfectly – the user is taken to the native app, authorizes and is returned to the app. However, if the user is not logged into the facebook app, he is asked to log in, but then authorization is not requested and the user remains in the Facebook app. Questions: 1. Is this a FB bug and is there any way to reso
captainkirkwood
ios xcode worklight worklight-adapters worklight-security
We have an “iPhone” environment in our Worklight project that we use for our native iOS client development in XCode 5. We are getting an authentication error, despite having App Authentication disabled in the Worklight console.The steps we’re following are:Call wlConnectWithDelegate: method on WLClient sharedInstance On success from wlConnectWithDelegate, we invoke our adapter procedure with invokeProcedure:withDelegate:The code looks like this:#import <BlocksKit/A2DynamicDelegate.h>+ (voi
seedeg
ios ajax sencha-touch-2 native
I have been researching on this subject and am still a bit confused.I have a Sencha Touch 2 which is working perfectly on my machine. This is for the simple reason that I have a configured proxy on my machine’s apache which allows me to call the server without the need of an absolute path. i.e. the requests are made from my machine to the server in the following manner:url: /folder/subfolder/etcThe app also works if accessed publicly on the domain abc.mydomain.com since the server is on the same
user198725878
iphone ios sencha sencha-2
Mac-mini-2:sink eit$ sencha app build native[INFO] Deploying your application to /path/to/www/sink/build/package [INFO] Copied sdk/sencha-touch.js [INFO] Copied app.js [INFO] Copied resources/css/app.css [INFO] Copied resources/images [INFO] Copied resources/icons [INFO] Copied resources/loading [INFO] Resolving your application dependencies… [INFO] Found 139 dependencies. Concatenating all into app.js… [INFO] Processed sdk/sencha-touch.js [INFO] Minifying sdk/sencha-touch.js [INFO] Processe
Yannis Rizos
ios development-environment xcode
Let me explain my need:I’m having a networked environment with 3 computers connected to a server which will be running full-time. The server also runs a FTP server. I would like to create an environment where 3 developers will be able to work on the same project.For example, if I’m creating a CRM app, I would like to split the project into modules so that each one will be working on each module like Developer A will be working on authentication, Developer B will be working on saving/retrieving
xpg934
ios uitableview garbage-collection monotouch monotouch.dialog
Please help me, what am I doing wrong.I use BubbleCell and BubbleElement from the examples. For unknown reasons, the application sometimes crashes in native code. I try out a little bit to correct the situation if I do not use DequeueReusableCell, and always create a new BubbleCell. Also, the problem disappears if the constructor BubbleElement to pass a string constant as the caption, not the object field.Stacktrace: http://pastebin.com/KAYzpHDkThe problem is deeper than it seems. Your suggestio
Idan Adar
ios native worklight
Our Worklight project uses both hybrid and native screens. Both work fine independently. Our problem pertains to Native screens calling/embedding the Worklight page.The structure of the native screen is:Header & footer with some data and Middle section is a native WebView componentIf we try to load the Worklight page in the native WebView, it fails to initialize and load the Worklight framework.In the native WebView we use the following to call the Worklight page:[webView loadHTMLString:@”wo
Arpit MIshra
ios ios4 sencha-touch sencha-touch-2
I am new to sencha touch and developed a small test app using sencha touch 2 and generated a native package for i-os and it’s working fine with the emulator but when i tried installing iton the device it’s falling in installation with the message entitlements are not valid. I have generated the certificate from apple official site and also have the provisioning profile for the same then why the installation fails?Is there any way to specify the i-os version in packaging for which i have to devel
anderZubi
xcode osx-mavericks
Since upgrading to 10.9 and XCode5 I get the following compile message on the log console during compilation:Native OpenCL program build failed:error: PCH file contains compiler errorsMy Program display images with or without CoreImage Filters. When I activate a filter I get on the console the following messages, the displayed image is also totally messed up. If I turn of the the filter every thing is back to normal.######################################## clBuildProgram() failed (-11) for kern
captainkirkwood
ios xcode worklight worklight-adapters worklight-security
We have an “iPhone” environment in our Worklight project that we use for our native iOS client development in XCode 5. We are getting an authentication error, despite having App Authentication disabled in the Worklight console.The steps we’re following are:Call wlConnectWithDelegate: method on WLClient sharedInstance On success from wlConnectWithDelegate, we invoke our adapter procedure with invokeProcedure:withDelegate:The code looks like this:#import <BlocksKit/A2DynamicDelegate.h>+ (voi
Yannis Rizos
ios development-environment xcode
Let me explain my need:I’m having a networked environment with 3 computers connected to a server which will be running full-time. The server also runs a FTP server. I would like to create an environment where 3 developers will be able to work on the same project.For example, if I’m creating a CRM app, I would like to split the project into modules so that each one will be working on each module like Developer A will be working on authentication, Developer B will be working on saving/retrieving
jtc
ruby-on-rails ruby xcode rvm
I tried everything from others’ posts. -I’m on Lion -Installed Xcode 4.6.3 (4H1503) -Brew up to date and ready to brew -Installed rvm with ruby 2.0.0 -Installed command line tools – gcc42-4.2.1- – tried ‘sudo ln -s llvm-gcc-4.2 gcc-4.2’And still get this error below. Please help!!Building native extensions. This could take a while… ERROR: Error installing rails:ERROR: Failed to build gem native extension./junetic.rvm/rubies/ruby-2.0.0-p247/bin/ruby extconf.rb/junetic.rvm/rubies/ruby-2.0.0-p
Victor
ruby-on-rails ruby xcode gem
I have latest Xcode Tools 3.2.4 installed. Just whenever I try to install any gem, for example, the MySQL gem, such error occurs:VNMB:rails2app ABC$ sudo env ARCHFLAGS=”-arch i386″ gem install mysql — \–with-mysql-dir=/usr/local/mysql –with-mysql-lib=/usr/local/mysql/lib \–with-mysql-include=/usr/local/mysql/includePassword:Building native extensions. This could take a while…ERROR: Error installing mysql:ERROR: Failed to build gem native extension./Users/ABC/.rvm/rubies/ruby-1.8.7-p302/b
Staffan Estberg
ruby-on-rails ruby xcode gcc rvm
I’m new to Terminal so please bear with me. Completed installing the following successfully (in this particular order):xCode 4.5 RVM 1.16 GCC 4.2.1 Ruby 1.9.3When trying to install Rails (“gem install rails”) the installation starts but is then interrupted with an error: “Failed to build gem native extension”. No idea what this refers to. Ideas? Something else I need to install beforehand? On my first attempt to install Rails I accidentally ran it with sudo. Will this affect anything?Edit: And t
TheAmateurProgrammer
aLFaRSi
objective-c xcode
i`m trying to make an NSMutableArray From NSUserDefaults so i can add/delete and edit it latermy code is- (void)viewDidLoad { [super viewDidLoad];NSUserDefaults *ArrayTable = [NSUserDefaults standardUserDefaults]; [ArrayTable setObject:@”One” forKey:@”myArray”]; [ArrayTable setObject:@”Two” forKey:@”myArray”]; [ArrayTable setObject:@”Three” forKey:@”myArray”]; [ArrayTable setObject:@”Four” forKey:@”myArray”]; [ArrayTable setObject:@”Five” forKey:@”myArray”]; [ArrayTable synchronize];NSMutableArr
Rob Caraway
ios objective-c xcode xcodebuild osx-server
I’m getting this error when trying to use an Xcode bot to integrate for unit tests:Integration failed. Unexpected error while building. See the integration’s logs for more details.I couldn’t make any sense of the logs. They pretty much spit out any error with the system whether related or not.I use a remote repository from from Github, testing currently on only 1 device. I’m .gitignore-ing the standard stuff from Xcode.Here is the most relevant messages from the log I could find:’2014-01-01 10
jerik
ios xcode app-store rename appstore-approval
I want to submit my app to the apple approval process. According to the guideline, they will reject apps that are beta versions. During the history of development, my code was based on an earlier beta version, thats why I have some files and folders, which contains the string “beta”: ./FooBeta ./FooBeta/FooBeta-Info.plist ./FooBeta/FooBeta-Prefix.pch ./FooBeta.xcodeproj/xcuserdata/bar.xcuserdatad/xcschemes/FooBeta.xcscheme ./FooBeta.xcworkspace/xcshareddata/FooBeta.xccheckout ./FooBetaTests
TheAmateurProgrammer
sdev
ios5 xcode4
Environment: Xcode4.2, IOS 5 ARC project Question – 1: I keep seeing references to being able to execute code from the debugger, but it never works for me. For example,(gdb) po modelNo symbol “model” in current context. gives me “No symbol ‘model’ in current context.”. Is there a setting I need to change?Question – 2: this question is about the NSString comparison: see above photo, PropertyBriefModel *model = [newPosts objectAtIndex:0]; //model.propID is a NSString type.but I cannot compare the
ChrisHeneghan
objective-c xcode xcode4
I’ve just started to learn objective c and I was playing around with typedef, enumerations, switch statements, and functions, just to become more familiar with them. From my understanding, this code should all work, but I get a compile error on where I declare the switch statement that says “unexpected type name ‘dinnerPreference’: expected expression. If I used typedef to define dinnerPreference, then why does this happen.typedef enum { pizza = 0, steak = 1, seafood = 2} dinnerPreference; int
Darren
ios xcode xcode4 uistoryboard
I’m just starting my first application using storyboards. I’m using Xcode 4.5 and iOS 6 SDK. I want to know how to change the order in which the controllers are listed in the Document Outline (panel to the left of the storyboard).
John
objective-c xcode4 ios-sdk-4.3 aqgridview
I am new in Iphone development . Now, i am trying to develop an AQGridView in iphone . I downloaded the zip file of AQGridView from Github socil coding site. The example application of AQGridView (ImageDemo,SpringBoard,ExpanderDemo) can not run in xcode 4 and ios sdk 4.3.At compail time they showing some error “AlanQuatermain-AQGridView-4072978/Examples/ImageDemo/main.m:14:5: error: unexpected ‘@’ in program [3]”The error indicator shown at main(). The code of main() is bellow.int main(int argc
Ben Zotto
iphone xcode xcode4
I upgraded an Xcode 3 project to Xcode 4. The default scheme builds my Debug configuration. If I want to build Release (a configuration which of course already exists) or Ad-Hoc, etc, is the right way to handle this to create a new Scheme for it? (It seems unexpected that I’d have to manually create a new scheme for every one of my 5 existing configurations except Debug.)Or is there a more lightweight way? If I’m fundamentally misunderstanding something, feel free to set me straight.(I have read
mu96
xcode svn xcode4 repository google-code
For a new project created on Google Code, how to set it up with a new project in Xcode 4.0 ?I have created the project on Google and in Xcode. Now that I add a svn repository in Xcode, it shows Unable to find revisions and there is this error on import:Server sent unexpected return value (405 Method Not Allowed) onresponse to OPTIONS request
Niels R.
iphone ios xcode ios4 xcode4
This app has been under development for more than a year and has had multiple releases already. This development cycle I noticed that the “fallback” language doesn’t seem to work anymore.The app had 3 targets: CountryA, CountryB and CountryC. Each target has the following localization directories: CountryA: en.lproj, langA.lproj, langB.lproj CountryB: en.lproj CountryC: en.lproj, langC.lprojIn each targets info.plist a key “CFBundleDevelopmentRegion” with value “en” is specified.The project.pbx
Peter Hosey
xcode performance xcode4
I have an issue with Xcode 4 really responding very slowly to user interactions, e.g. editing code, scrolling areas etc. This particularly happens with larger scale projects with many controllers/view files etc.I completely wiped the hard disk and re-installed Snow Leopard and Xcode the other week but steadily it ground to a frustrating response time again (over a number of days) disrupting workflow considerably.I have also on occasion removed the project’s “derived data” via the Organiser -> Pr
user1539154
objective-c xcode xcode4 xcode4.2
I am new to XCODE, but I am trying to learn. Basically my project is a rework of Nada Jaksic’s Creating a table-based form on the iPhone”. I would appreciate being informed where I went wrong in my coding, so that I can learn from my mistakes. Any and all help is definitely appreciated!From the SignupTableViewController.h file:#import <UIKit/UIKit.h>@interface SignupTableViewController : UITableViewController<UITextFieldDelegate, UIActionSheetDelegate>{IBOutlet UITableViewCell *cel
yuji
iphone ios xcode xcode4 navigationitem
When designing in Interface Builder and you add text to a prompt property, it creates an additional top title. This comes with the extra thickness needed to allow for 2 tiles in the navigation bar. Once I remove the text, let’s say to reset back to the way it was, it keeps that thickness even though there is no text there. At runtime switching views makes the bar grow and shrink, which isnot nice.My question is, how do you reset this back to a default single line thickness bar?Thank you Jim
Web site is in building