-(void)touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event{
UITouch *touch = [touches anyObject];
gestureStartPoint = [touch locationInView:self.view];
NSLog(@"test x:%f",gestureStartPoint.x);
NSLog(@"test y:%f",gestureStartPoint.y);
etc..
Srangely, I'm not receiving any log statements if I click outside a 320x480 fra...
Hi, I am new to Git and I am using it to backup an iPhone project I am working on.
I have added a list of files that Git should ignore (xcode files) when I update, but this .perspectivev3 (which is in my .gitignore) file keeps showing up when I go to commit my changes. Does anyone know why this is, or what I am doing wrong?
Thanks,
Zac...
Hi
Im using the table view in the view controller,with the simple array was displayed in the list.that array was displays and works fine but im getting this Warning.may i know the reason for this and please some ideas to rectify this issues..
WARNING: Using legacy cell layout due to delegate implementation of tableView:accessoryTypeFo...
Hi all, I'm using XCode 3.1.4, I'd like to browse the iOS framework classes visually, eg. the UIKit.framework classes.
I believe this is possible with Class Model facility, the documents here http://developer.apple.com/tools/xcode/xcodefuture.html suggest so:
The Xcode class modeler works with Objective-C, C++, and Java source code ...
Hi, I am handling a camera that needs different parameters in different architecture, Is there a flag that I can check to see if I am in 32bits or 64bits in my mac?
I was trying this but does not seem to work, I always get 32Bits!! :
#if defined(PER_ARCH_CFLAGS_x86_64)
NSLog(@"64bit!!");
#else
NSLog(@"32Bits!!");
#endif
...
Hi all,
Would appreciate any ideas.
I have a line (begin x,y / end x,y). Its stored in an array. I can detect a touch that intersects my line (can delete etc; from array). What I would like to do now is to move that line to new location (based on drag), or, continue the line further (or indeed reduce its length) at either point. All base...
I’m using Xcode 3.2.4 and have setup the Clang Static Analyser feature to use a newer build of the binary, as detailed here: http://clang-analyzer.llvm.org/xcode.html
(Basically using the set-xcode-analyzer command line utility to change which copy of the Static Analyser that Xcode uses for Build and Analyze.)
What I can’t figure is ho...
I want to change the caret blinking color in XCode, the default is black but now when I have a dark background I would rather have a white caret color.
Anyone that know how to change the caret color in XCode?
...
When using the "add Account..." function in the 'Mail,Contacts, Calendars' section in 'Settings' on an ipad, selecting the address field causes the keyboard to change the labels of the '!,' and '?.' keys, shorten the right '.?123' and space key and add two new keys ('_' and '-')
I have also seen the Keyboard augment to show a '.com' key...
Hi! I am new to this field, presently i am on an application in which i'm parsing the data from xml file in my xml file there is a date (yyyy-mm-dd format), time (hh:mm format). i took some variable in application to store them like NSDate for date from xml and NSString for time purpose. i need that if i select some date from UIPickerVie...
I am learning to use Core Data. I have created a data model etc and have been inserting items using NSManagedObjectContext and NSManagedObject.
I have noticed something though - I didn't have to create any db.
So why question is - when I create the data model - is that actually creating the db i.e. is that all there is to it? It seem...
Below is my code
NSFileManager *fileManager = [NSFileManager defaultManager];
NSArray *dbPath=NSSearchPathForDirectoriesInDomains(NSDocumentDirectory , NSUserDomainMask, YES);
NSString *documentsDir = [dbPath objectAtIndex:0];
NSString *writableDBPath= [documentsDir stringByAppendingPathComponent:@"mydb.sqlite"];
success = [fileManager ...
I am having trouble compiling Pygsl on Mac OS X, using GCC 4.2. I ran the following:
sudo python setup.py install
And got this error:
In file included from testing/src/sf/sfmodule_testing.c:49:
testing/src/sf/sf__data.c:779: error: ‘gsl_sf_exprel_n_CF_e’ undeclared here (not in a function)
testing/src/sf/sf__data.c:806: error: ‘gsl_...
hi,i am new to this iphone....
i hav navigation controller ,itoolbar having the button in all view and when user gets taps this button it should load first view or main view ...
how should i do it
...
I've been playing around with upgrading from an iPhone app to a Universal application, using the handy Upgrade Current Target for iPad... menu option.
Everything appears to succeed (although it's really hard to tell, Xcode just whispers success). So I started to change my MainWindow-iPad.xib file that was generated by the upgrade. And t...
I'm trying to pull some data from plist file and display it in a text field (from a UIButton click). the code below pulls the address of the plist and not the data. any help is greatly appreciated. thanks
-(IBAction) buttonPress {
NSString *path = [[NSBundle mainBundle] pathForResource:@"messages" ofType:@"plist"];
NSMutableArr...
I have an iPad app out on the app store which I'm interested in making an iphone version for. The whole screen is used in the iPad app, with basic strings that display information.
How could I bring all that to the iPhone and make it scrollable? For example, to make it fit on the phone I would have the title on top, then a string statin...
i want to detect user touch on table view so that i can pass that particular section information to the next view to display it ...
how can i do it
...
I am working towards getting rid of all link warnings, but I am getting three that I don't quite understand and a google search for this warning hasn't been helpful.
The output to Xcode looks like:
ld: warning: can't add line info to anonymous symbol __ZN16CLineAlignWidgetD0Ev.lsda from /path/to/CLineAlignWidget.o
What causes this war...
I am new to testing in Xcode. I am following the developer documentation "iOS Developement Guide" Unit Testing Applications.
I have successfully added unit test bundles to my application with one failing test.
When I build the test target the output shows 1 error as expected but the editor does not show the expected error message unde...