When I call this function, it seems to return a pointer instead of an int. When I try and NSLog the return value, I get a warning "passing argument 1 of NSLog from incompatible pointer type." And if the NSLog runs, it crashes.
Does this have to do with this being a static method? How can I get back a real int?
I am using SDK 3.0
Here...
Does anyone know if I use emoji unicode in an app's view if Apple considers this out of bounds? I'm not asking about enabling emoji or selling an app that is meant to enable emoji.
And example of the code - which is placing an NSString into a tableViewCell NSLabel:
if([combatCurrentHp intValue] <= [combatMaxHp intValue] / 2) {
char...
I have a class that contains a few instance methods which need to be called from another class. I know how to do that -
TimeFormatter *myTimeFormatter = [[TimeFormatter alloc] init];
[myTimeFormatter formatTime:time];
However, I don't want to have to alloc and init TimeFormatter every time I need to call one of its methods. (I need t...
I'm new to Objective-C and need help!
I'm following the example "PageControl" which can be found on the net. I added a button to the view in the NIB and hooked up an action which the implementation is found below.
Here is my definition for the view controller being displayed in the page control:
//ContactCardViewController.h
@interf...
I have developed an iPhone application that integrates a list of shopping registries,a To Do list and a Contact sub-app. The 'Contact' app has a GUI similar to the Info page on the iPhone's Contact app with ability to select a contact in the middle, and three buttons; Call, Sms, and Email at the bottom. When the user touches the 'Select...
Hi, I have two of my apps rejected by Apple and sitting on the "shelves of approval" for 2 months, because both apps were using UIImagePickerController and I dared to add a rectangle on top of the UIImagePickerController, using something as
[picker.view addSubView:rectangle];
On the other hand, applications like CameraZoom and others, ...
(By the way I develop without Interface Builder)
If you have a tab bar app that autorotates, so all the autoresizing masks are set, how do you make it work with all the views? Like if one view autorotates to landscape, you select a different tab in the tab bar, and the view associated with that tab comes up, and its all messed because it...
I have a table view that has embedded UITextFields for entering some data. It also has two other fields that popup a UIPickerView and a UIDatePicker - as demonstrated in the DateCell example from Apple.
Mostly it works but I can't figure out how to cleanly transition from the text field keyboard to the other pickers - one slides out, o...
I have a UITextField inside a TableViewCell where a player enters their name. I have limited space (78 units) for the control. I'd like the font to be as large as possible (Helv 16) for easy readability but also scale down for longer names. (min size 8) I thought that "Adjust to Fit" in Interface Builder would do the trick but alas it...
How do I detect a single tap on an instance of MKMapView? Do I have to subclass MKMapView and then override the touchesEnded method?
Thanks,
-Chris
...
Doing as little alpha blending as possible is an important performance consideration for table view cells on the iPhone. I have table cells that are largely comprised of one big image view. I have set the UIImageView to be opaque, in both Interface Builder and programmatically, but the CoreAnimation instrument still shows that it is bein...
Hi everyone!
I currently have an app on the App Store that was built with version 2.2.1, i.e. where the Base SDK and the Deployment Target were both set to 2.2.1. That app runs fine. Since then I've upgraded my version of XCode to 3.1.3 and I'm working on an update to my app with the Base SDK set to 3.0 and the Deployment Target set to ...
Has anyone tried taking a video from the camera and then using the video player provided to play it? When you take the video in portrait mode, sometimes the movie will play (when the player puts it in landscape mode) and when it puts it in portrait mode you cannot view the movie all you hear is sound,sometimes in landscape mode is flicke...
Hey guys,
Once again I've searched for about 45 minutes for an answer to this question and I thought I might have found the answer but then the situation I was reading wasn't exactly like the one I'm running into.
when I add my view it seems that it's not completely covering the window I was able to get rid of the status bar at the to...
My GUI for an iPhone app uses numerous UIViews. The user "flips" through these views when they tap a button to go forward or backward. The views are stored offscreen and are added to an actual view only when the program needs to display it.
During the flip process, the program tells the parent view (a uiscrollview) to remove any existin...
In the iPhone Push Notification documentation, they have a code snippet in which they override the UIApplication method that receives a device token -
- (void)application:(UIApplication *)app didRegisterForRemoteNotificationsWithDeviceToken:(NSData *)devToken {
const void *devTokenBytes = [devToken bytes];
self.registered = YES;
[self ...
iphone sdk question: I need to login to a web app and keep the session (session cookie) and then get an xml feed.
I haven't found a good example for this.
...
This question has something to do with the question I posted here: http://stackoverflow.com/questions/1230858/iphone-core-data-crashing-on-save
however the error is different so I am making a new question. Now I get this error when trying to insert new objects into my managedObjectContext:
*** Terminating app due to uncaught exception ...
I am using RegexKitLite in an iPhone project and want to use regex to find words that start with the @-sign. For instance, "@home @chores", when searched, would return both words.
The regex string I am using is "(?m-s:@.*\\s*)". When I use this, though, I get a crash. When I use the same thing, but with a # instead of @, it works just f...
i have a scrollview with uiview added as subview..now how do i open a new view when i touch on the view????
i want a new view to appear...before this i have buttons on my view...so button have the method "addtarget perform selector"...from that i am loading a new view
here is an image of my view
...