Hi all
I am sending some data and and an image to the server using multipart/form-data in objective C.
kindly give me some Php code that how can i save the image on the server i am able to get the other variables on the server that i am passing with the image. kindly see my obj C code and php and tell me where i am wrong.
your help wi...
Hi there.
I really wonder why this question hasn't popped up here so far.
I have a UITableView with custom UITableViewCells in it. The Table itself is editable and contains deletable cells as well as insertable ones.
if a cell is being deleted i want it to become insertable again AND it to move to the bottom of the table.
any clues on...
Hi all
can any one guide me how to get parameter specially image from the given post request.
--0xKhTmLbOuNdArY
Content-Disposition: form-data; name="source"
lighttable
--0xKhTmLbOuNdArY
Content-Disposition: form-data; name="title"
Google (The top search engine).
--0xKhTmLbOuNdArY
Content-Disposition: form-data; name="isbn"
97800772...
So I have an MVC-application in Cocoa.
There are some custom views, a controller and a model. Of course, the views need to know some stuff, so they get their data from the controller. However, they do not use accessors in the controller, they use KVC with a keypath that calls right through to the model:
// In view.m
time = [timeSource v...
I am just looking at sorting an NSArray of NSNumbers into numeric order but am a little unsure of the best way to go. By my way of thinking 001 and 002 are pretty comparable, so I would suspect either will do. For 003 I am not sure if returning NSMutableArray when the method expects NSArray is good practice, it works, but it feels awkwar...
I've got a simple UIWebView in my iPhone app that's loading a XHTML document with some SGV embeded. This all works find on the desktop version of Safari, but it crashes in a UIWebView.
Here is the Objective C:
NSString *path = [[NSBundle mainBundle] pathForResource:@"test" ofType:@"html"];
NSData *fileData = [NSData dataWithContentsOf...
I have two entities: Patient and Job. Patient has a to-many relationship to Job called 'jobs' and Job has a to-one relationship to Patient called 'patient'. Job has attributes called 'dueDate' (Date) and 'completed' (BOOL) and Patient has attributes 'firstName' and 'lastName' (both Strings).
I am trying to create a fetch request / predi...
Hi,
I'm trying to use Doxygen with Xcode. I followed the Apple tutorial. After several mistakes, I builded the project and generated the docs. I discovered that if you save the doxygen.config from Doxygen and you use space " " in the directory name you will have problem and others things.
But there is one last problem:
./search/searc...
I'm working on a music streaming app that needs play controls (skip, pause, play) just like the iPhone iPod app. I built my controls using a UIToolbar and the standard buttons.
My UIToolbar controls look OK, but they're smaller than the ones that the iPod uses.
Does anyone know if the iPod controls are custom graphics? Or maybe custo...
Hi guys! I have another question on how to make most elegant solution to this problem, since I cannot afford to go to computer school right so my actual "pure programming" CS knowledge is not perfect or great. This is basically an algorhythm problem (someone please correct me if I am using that wrong, since I don't want to keep saying th...
I am detaching a new thread
[NSThread detachNewThreadSelector:@selector(loadAvatar) toTarget:self withObject:nil];
I am getting an EXC_BAD_ACCESS on
STObject* st = [cellitem get:@"stobject"];
In my following method
-(void)loadAvatar
{
NSAutoreleasePool * pool = [[NSAutoreleasePool alloc] init];
STObject* st = [cellite...
I do this:
NSString *fullpath = [[NSBundle mainBundle] pathForResource:@"text_file" ofType:@"txt"];
Why the following message appear?
Is my code leaking?
2010-03-31 13:44:18.649 MJIPhone[2175:207] *** _NSAutoreleaseNoPool(): Object 0x3909ba0 of class NSPathStore2 autoreleased with no pool in place - just leaking
Stack: (0x1656bf 0xc8...
Is there a way construct a predicate to filter by class type?
I currently loop through the array and check to the class of each object. Maybe there is a cleaner way?
...
I have to invoke a method present in a view controller who's reference is available in the view. When I try to call the method like any other method, for some reason, iPhone just ignores the call. Can somebody explain as to why this happens and also how can I go about invoking this method?
In the view I have this method:
-(void) touc...
For example, this method from NSCalendar takes a bitmask:
- (NSDate *)dateByAddingComponents:(NSDateComponents *)comps toDate:(NSDate *)date options:(NSUInteger)opts
So options can be like:
NSUInteger options = kCFCalendarUnitYear;
or like:
NSUInteger options = kCFCalendarUnitYear | kCFCalendarUnitMonth | kCFCalendarUnitDay;
Wha...
Lets say I have to provide an value as bitmask.
NSUInteger options = kFoo | kBar | kFooBar;
and lets say that bitmask is really huge and may have 100 options. But which options I have, depends on a lot of situations. How could I dynamically compose such a bitmask?
Is this valid?
NSUInteger options;
if (foo) {
options = options ...
I am having issue with losing "video" sound while it was playing.
I follow all the standard but the Video Audio sometimes got muted or just disappear at the end of the video file. Have no idea why. Does any know what might be an issue?
This only happens when running the app on the real device, i can't simulate the issue on the simulator...
Hi everyone,
This is my first post on stackoverflow so please be patient :-)
I have an Json Array of Arrays:
{
"response_type": "ok",
"total_results": 1,
"page": 1,
"total_pages": 1,
"sets": [
{
"id": 2075184,
"created": 1269989599,
"term_count": 5,
"has_images": false,
"terms": [
...
Hello everybody
In my App I'm trying to get PSMTabBarControl working, but all I do - nothing...
I have copied the framework File in my Frameworks folder of my App, then included it. In my InterfaceBuilder (3.2.1) I was able to drag and drop the PSMTabBarControl to my Window and link it with the NSTabView (PSM -> tabView -> NSTabView &&...
Hi, I'm just trying to work out why the following code is leaking memory and I have a funny feeling that i'm not releasing the array memory correctly. This is a C function in a wider objective-c app and I'm not native to C... i've tried just using free() on the array, but have a feeling this isn't the whole story...
Could someone have a...