I have been slowly learning iPhone development and seem to keep hitting walls where I can't figure out how to do what I want to do the right way :(
Basically, I want a class that handles all interactions with the data layer, for example, getting a mutable array of some list of objects from the data store.
This is pretty trivial in othe...
Hi,
I am trying to manipulate a string of open hours that is given to me.
It is poorly formatted and I need to bring it up to the same standard as another piece of data from a different source.
Mon-Wed 930-1700 Thu 900-1700 Fri 930-1700
Mon - Wed 930-1700 Thu 900-1700 Fri 930-1700
Mon - Thu 930-1600 Fri 930-1700
Mon - Wed 930-1700 Thu...
Is it possible to record a video on iPhone but with some custom sound instead of the one captured by microphone?
...
How can I send email in cocoa/objective-C? I've seen ways that open up mail.app and send it but I want it to run in the background. External frameworks are ok but not preferred.
-Thanks!
...
So I am writing a mac application that parses SF Giants baseball statistics using xpath. In my situation I have a specific number Identifier of a person <td class="textSm" align="right">1. </td>(in my application a person could search find a stat based on a number input) but from there I need to back out from that spot in the HTML, ...
Ok for some reason my code wont play nice and I'm too new to cocoa to figure this out on my own..
when the send button is pressed it is meant to run the createEmail method. But it says
GDB: Program received signal: "EXC_BAD_ACCESS". when the button is pressed.
#import "Controller.h"
@implementation Controller
-(IBAction)send:(id)sende...
When revealing a new view, what are the differences between these two and when would you use each?
Also, what's the right way to nest views. for example, I have a UIImageview that animates onto my view and it has a button on it. I want to put that image and the button in their own view, then simply animate the view and have both handled...
So, I've got a one-to-many relationship of Companies to Employees in CoreData (using a SQLite backend on iOS, if that's relevant). I want to create a predicate that only returns Companies that have 0 Employees associated with them. I could do it by getting all the Companies and iterating over them, but that would be (I assume) much slowe...
What is the best method to toggle on/off an iPhone 4's camera flash?
...
how to work with flurry sdk? Is any one have idea about this.please let me know with sample code.i want to work with my iphone app.
...
Where can I learn more on xcode OpenGL ?
...
So I have a UINavigationController that pushes a UITableViewController from the rootViewController. From the UITableViewController, I want a UIImagePickerController to be pushed when I click a certain cell. How would I get the navigation controller to display the image picker?
...
So when I convert a double to a string using something like this:
double number = 1.1;
text = [[NSString alloc] initWithFormat:@"%f", number];
The variable text ends up printing something like this: 1.100000. I realize that this is because of the way the computer stores the value however I need an easy way to remove those extra zeros ...
I have a UIView that I'd like to add several bits of text to. I have used a UITextView but I think that's overkill as it doesn't need to be editable. I thought about using a UILabel or a UITextField, but I don't see how you tell the superview where to position the UILabel or UITextField within itself. I want the lowest footprint objec...
I am a web developer trying to make it in an xcode world, and I need to see the contents of an array I have in my console, what are my options??
Thanks!!
...
In my core date in the entity name called Event and in that there is an attribute called "name". I want to fetch all the values of term from coredata to an nsarray. I used the below code and it is not working. Anybody please helpp.
NSFetchRequest *request = [[NSFetchRequest alloc] init];
[request setEntity:[NSEntityDescription entityFo...
Here's a hypothetical question:
Say I subclass a UIView that draws a triangle and I want this triangle uiview to part of the screen. And then say I subclass another UIView that draws a rectangle and I want the rectangle to take part of the screen.
In other words:
1) Can a view-controller have multiple views simultaneously being drawn ...
Hi all,
I get this message. The thing is, I want to be able to tell cocoa to just not send the notification if the object no longer exists. Is there a way to do that?
The broader picture:
I'm sending requests to a server, but while that request is going on, maybe the user has done something to destroy the object expecting the reques...
Hi all,
Using AsyncSocket I made a simple text chat. I have found that
sometimes during net inconsistency following delegate at server and at
client code:
- (void)onSocket:(AsyncSocket *)sock willDisconnectWithError:(NSError
*)err, does not get called.
In this method, at client side, I am disposing socket connection
established w...
In Objective-C there is the Alloc/Init metaphor. They've also added a shared convenience method called 'new' that internally just calls both in succession. And if I create a subclass of NSObject called FooClass, FooClass picks up those shared methods, including 'new'.
BUT... how the heck is that implemented??
It can't simply delegate...