Hello guys,
I've followed this tutorial for setting up a static library with common classes from 3 projects we are working on.
It's pretty simple, create a new static library project on xcode, add the code there, a change some headers role from project to public. The tutorial says I should add my library folder to the header search pat...
Hi,
The question is: how to add news via FBConnect??
I have the following code:
NSString *newsBody = @"[{\"message\": \"News message\" }]";
NSMutableDictionary *params = [NSMutableDictionary dictionaryWithObject:newsBody forKey:@"news"];
[[FBRequest requestWithDelegate:self] call:@"facebook.dashboard.addnews" params:params dataParam:n...
Does anyone have any sample code to share on using the Disqus API in Obj-C/Cocoa?
...
Hi there,
I'm currently developing an iPhone application, and when it comes to compiling, I have the aforementioned error. Here's the block of code it's on:
-(void)tableView(UITableView *)tableView{
didSelectRowAtIndexPath:(NSIndexPath *)indexPath {
NextViewController *nextController = [[NextViewController alloc]
...
Hi,
Here I m pasting my codes where i want to retrive Bundle version from my test-Info.plist.
//
// testAppDelegate.h
// test
//
// Created by Fortune1 on 20/04/10.
// Copyright __MyCompanyName__ 2010. All rights reserved.
//
#import <UIKit/UIKit.h>
@class testViewController;
@interface testAppDelegate : NSObject <UIApplicationD...
I am facing a strange problem with my iphone. It shows available memory as 278 Mb from settings and also in the itunes . But when i find it programatically like this
NSDictionary *fileSystemAttributes = [[NSFileManager defaultManager] attributesOfFileSystemForPath:NSHomeDirectory() error:&error];
double availableSpace = [[fileSystemAttr...
I'm looking for a way to draw a curve (perhaps a parametric function?) into a CGContext
The best example which I can think of is the Adobe Ideas iPad application. As the user drags their finger, the application draws lines for every touchesMoved: using CGContextAddLineToPoint. After the user picks up their finger at touchesEnded:, the a...
I have a Location class that contains a lat/lon as well as an elevation and timestamp:
@interface Location : NSObject <NSCoding> {
double lon;
double lat;
double ele;
NSDate *time;
NSDateFormatter *gpxDateFormatter;
}
I want to be able to serialize an NSMutableArray containing an arbitrary number of these Location objects into ...
I need to work with private HTTPS API and client has incorrect certificate on the host.
Certificate is for www.clienthost.com and I'm working with api.clienthost.com.
So I need to connect via HTTPS to api.clienthost.com ignoring incorrect certificate but still make sure it is the one for www.clienthost.com and not something else.
I found...
When manualy adding contact's phone /IMS in iPhone AddressBook you can add Custom Label instead of "Home", "Work", "Other" *(in IMS).
How to create "Custom Label" in AddressBook programmaticly?
...
Hello,
How can i get section cell text on custom cell button click.
is this possible?
Thank you,
...
I have a project that is coming around the bend this summer that is going to involve, potentially, an extremely high volume of image data for display. We are talking hundreds of 640x480-ish images in a given application session (scaled to a smaller resolution when displayed), and handfuls of very large (1280x1024 or higher) images at a t...
How to show callout bubble without the user tapping on the pin ??
...
As far as I understand, the only way to place a call from an app is using the tel:// URL scheme, which launches the native phone app. But the Truphone app available on the App Store can place VOIP call even when there is no WIFI available. They say they do it by making a GSM call to their server and routing the VOIP packets over the inte...
i have a plist that's at its root an array with dictonaries inside it.
i load a plist from my recourses as an NSMutableArray.
[NSMutableArray arrayWithContentsOfFile:[[NSBundle mainBundle] pathForResource:@"Filters" ofType:@"plist"]]
i store it into nsuserdefault because it has to be persistent between startups.
[[NSUserDefaults sta...
Hi,
Generally i call my other class view by creating a pointer of delegate and then call the other class by using its link as below:-
First Way :-
Mydelegate *ptr = (Mydelegate *)[[UIApplication sharedApplication]delegate];
[self.navigationController pushViewController:ptr.NextClasspointer animated:YES];
Second Way :-
Create a poi...
I have been spending many frustrating hours trying to get rotations working on the iPhone version of Tunepal.
Firstly, I have a tab bar controller, with a navigation controller controlling each of the views. I actually only want one of my views to be able to rotate and that is the TuneDisplay. I have a subclassed the UITabBarController ...
I have an iPad application that pulls in all of its data from an external web service. I am working on building in a demo mode that will use a cache of demo data stored on the device so it can be demoed and tried out without the web service connection (or an internet connection.)
Is there a project or good practices standard to follow ...
To debug a DB app I need to verify the datevalue against the value that arrives in my SQLiteDB.
Is there a way to show the double(?)-value of an NSDate (in code covert it to a double?)
...
I'm displaying HTML with some images inside a UIWebView in my iPhone App.
When the images are wider than the viewport of the iPhone I get horizontal scrollers which I don't want because its mostly about the text not the images.
Is there a way to resize images displayed inside the UIWebView according to the width (best: even if the devi...