Just finishing off my first iPhone app - it seems to be working fine in the simulator but on the phone the motion event's timestamp is returning 0.00 ?
- (void)motionEnded:(UIEventSubtype)motion withEvent:(UIEvent *)event{
NSLog(@"shaketime = %@", event);
}
in the simulator:
shaketime = <UIMotionEvent: 0x591b2f0> timestamp: 31467...
I'm looking for some existing code to interface my app with venturi licensing. I'm a bit behind on the whole encryption thing and don't want to re-create the wheel. Does anyone have a working piece they use? I'm writing in C++ and objective-C.
Thanks.
...
hi i wished to randomly load a view. the views are called view1 view2 and view3 below is the code im using. can any one tell me the the code i should place in the case section to replace - (void)viewDidLoad self.view = view1; etc as this is not working thanks
- (void)viewDidLoad {
[super viewDidLoad];
NSString *title = nil;
NSS...
I'm using the "Alternating Rows" option in Interface Builder to get alternating row colors on an NSTableView. Is there any way to change the colors of the alternating rows?
...
Hey guys,
I'm trying to allow users to record or choose a video in my iPhone app, limited to 30 seconds. The videos are uploaded to my web-server, then played back in the app using UIWebView.
The app happily plays back recorded videos, but on older iPhones (3G for example) it won't play videos that were chosen from the camera roll. T...
So I have some NSButtons and NSImages (I assume they would be moved the same way) that I want to move. I want to move them to new coordinates on the window. I assume that I could figure out the coordinates I want to move them to on Interface Builder, and then move them programmatically.
Additionally, how can I animate this movement? And...
In Ipad (IOS 3.2) I am working on an app that needs to play a opening .mov. When the video (while located in startUpVC) is finished playing it will call another VC for a welcome page. After several VC changing when I called the function [viewController.view removefromSuperView] in delegate I found that the app called the startUpVC (in th...
Hi,
I am working through a book on Cocoa and Objective-C. One example has stumped me:
- (id) currentObject {
return [Photo photo];
}
- (void) checkObjectType {
id object = [self currentObject];
...
}
In this case, checkObjectType calls currentObject. currentObject then returns an instance of Photo, however, it's creatin...
While using a UIActionSheet in an iphone app, the typical methods of matching actions to buttons seem very fragile and aesthetically unpleasant. Perhaps its due to my minimal C/C++ background (more Perl, Java, Lisp and others). Matching on button indexes just seems like too many magic numbers and too disconnected to avoid simple logica...
Hi folks,
The subject is vague because I'm not sure how to articulate in one sentence what I want.
Here goes:
I have an NSArray of NSDictionaries. Each NSDictionary represents one day of the calendar year. Each NSDictionary has a key "date" with a value of NSDate. There should be 365 NSDictionary items in the array. The dictiona...
I have a xcode project with multiple targets (for logic and app unit tests).
I am also using core data with the mogenerator plugin to autogenerate source files from the .xcdatamodel.
The generate files are not being generated with any of the "target" flags selected. This causes build errors.
Is anyone aware of a solution to this. I...
I am a bit new to Objective C and was wondering if there is a better way to count words in a string.
ie:
NSString *str = @"this is a string";
// return should be 4 words ..
The way I now how to do it is by breaking the string into an array of words space (' ') character and count the array.
Any advise will be appreciated! Thanks!!...
<day>
<date>October 19</date>
<job>
<value>xyz</value>
<time>5:30</time>
</job>
<job>
<value>abc</value>
<time>6:30</time>
</job>
</day>
<day>
<date>October 20</date>
<job>
<value>xyz</value>
<time>5:30</time>
...
Hi guy's
Can anyone suggest the steps to follow how to use siphon app in my own app for video conferecing in iphone sdk.
Guy's anyone's help will really much appreciated.
Thanks to all,
Monish.
...
Hello everyone,
I'm trying to write this down as concisely as possible, but it's not easy to describe -- so thanks for reading =)
I'm the main developer of the Open Source iPhone Framework Sparrow. Sparrow is modeled after the Flash AS3 Library, and thus has an event system just like AS3. Currently, that system works by specifying sele...
I have a custom view which contains UITextField's.
When user clicks on the text field, numeric KeyPad pops up.
But I need the KeyPad to disappear when "user" clicks anywhere else outside the textField's in the view....
Can anyone help me out...
Thanks in advance.
...
Hi, am new to iPhone and i have been given a task to show all the images from the gallery of the iPhone to the current view so that the user can select an image and view it and here's the second part of my problem i am having a share button and its functionality is that the selected image by the user on the touch of the share button must...
Is there a method to receive all entries from calendar at once, without specifying predicate, which can only create 5 years intervals?
I know about "5 years" from console output. I specified 1912-2020 years and here is output:
EKEventPredicate start:1/1/12 12:00 AM; end:1/1/16 12:00 AM; cals:(null)
Here is my current code:
EKEventStor...
Hi
I have just completed my game with cocos2d, however I go and build for release now (have always been building for debug) and now when I launch the game the accelerometer is screwed up.
It worked wonderfully in debug mode, with no issues at all.
What its meant to do:
Tilt left and right to move player left and right on screen.
What...
hai Guys,
in my app i am using the combination of tabbarcontroller, navigation controller and tableview controller.
The view hierarchy of the app is
UITabBarController
|
|_ UINavigationController
|
|_ UITableView
|
...