Hi guys,
i'm having a bad time with some little code running on the iphone
basically, i just press a button, it calls runTest, it runs test method on a background thread. That's why I created an autorelease pool.
if i run the below code i got a beautiful message on the console saying:
2010-09-07 11:45:15.527 test[1312:207] *** -[CFS...
I have a UITableView subclass which initially holds nothing, however by pressing a button I want to be able to add a string to the data and have it show up in the view. How can I do this? I have been trying to simply modify listdata, but this only seems to work once as after that the Table view does not reload, even though I can see more...
Hello stackoverflow,
So I am trying to create a request that will automatically follow the redirects in its process. For some reason this is not working, this is what my delegate method looks like. Do I need to do anything else for this to function properly? Thanks!
-(NSURLRequest *)connection:(NSURLConnection *)connection
w...
Hi, does anyone know how to return a plist / property list using restlets REST api? I'm connecting to my iPhone app and objective-c works much nicer with plists.
...
Hi Friends,
I am trying to delete a row from a UITableView.
My UITableView is populated from a NSMutableArray named TableData.
When i am deleting a row and reloaded the tableview, it shows that the last row has been removed [not the selected row].
But when i NSLog the contents of mutable array it shows that the selected row has been re...
Hi there, i'm developing an iPhone application and i'm implementing the navigation among views with the UITabBarController.
The documentation says :
"The tab bar has limited space for
displaying your custom items. If you
add six or more custom view
controllers to a tab bar controller,
the tab bar controller displays only
t...
This is the code
Dest.h
#import <UIKit/UIKit.h>
#import <CoreGraphics/CGPDFArray.h>
@class Model;
// snip
@interface Dest : NSObject
{
CGPDFArrayRef destArray;
DestKind kind;
}
+ (id)destWithObject:(CGPDFObjectRef)obj inModel:(Model*)model;
- (id)initWithArray:(CGPDFArrayRef)array;
Dest.m
@implementation Dest
+ (id)d...
I am playing with idandersen's scifihifi-iphone code for keychain and came across the following behavior - I set the password using, say
[SFHFKeychainUtils storeUsername:@"User" andPassword:@"123"
forServiceName:@"TestService" updateExisting:YES error:&error];
Then delete test application from device and install it a...
I am trying to create a custom UILabel which sets the background colour to clearColor (with added functionality further down the line). This way, I don't have to specify the exact properties for each label as they will be inherent in every instance of the label.
I have tried several variations on a them but with no success, what am I do...
Hi,
I have a small doubt. I have a NSObject class where I am trying to display an alert view. So after the alert view is displayed when I tap on OK button I want to push a navigation controller onto the stack. Can I push a navigation controller from general NSObject class? Please let me know guys..thanks for your time..
This is the code...
Been a tough week, will try to make this as clear as possible. Appreciate you taking the time to read.
Hi, I'm sending a registration request to a server. A user object in jSon is returned, I parse the jSon and save the jSon dictionary phone as a method on my User class. However, whenever I load the user from the phone - by reading the ...
I have a normal UITableViewCell with custom colors, but how can i change the border?
Currently it looks very ugly:
http://i.imgur.com/QzFFY.png (i am not able to post images :( )
I only want a tiny little white border.
...
I'm converting a string date/time to a numerical time value. In my case I'm only using it to determine if something is newer/older than something else, so this little decimal problem is not a real problem. It doesn't need to be seconds precise. But still it has me scratching my head and I'd like to know why..
My date comes in a strin...
Hello all,
So I was just curious if the NSHTTPCookieStorage was persistent across applications, or local only to the current one. I want some cookies gathered in another app to be accessible in a search app. Is that how it works? Thanks!
PS: This is on the iPhone or iPad.
...
Hi!
I'm developing an iphone application and when I compile it I receive some warnings. The application works, but probably it is interesting to delete all the warnings no?
This is one of them, that I can't undersand, basically because I'm a "rookie" with iPhone SDK and this class comes from another code (free code)
Anyone can help me...
I am trying to create a UITableView that only displays the number of rows that have data content in them. This is a menu system, and suppose there are 5 choices in the particular menu, I only want to show 5 rows on the screen, with a background image in place of where the empty rows would be (A similar example I guess would be the World ...
Hey guys I had some questions about udp networking. First of all how can two computers that are on separate networks connect to each other? I know that you can do this with port forwarding but I know things like xbox live don't work through that. How is this possible and is there a way to obtain an address to another computer on a separa...
In Interface Builder it is easy to connect an object from the NIB to an outlet in the File's Owner. However, my File's Owner is going to hold an array of sub-views, so I would like to instead add an object from the NIB to the File's Owner's array. Right now i'm just doing it by hand by checking the classes of each item from the top level...
Hello, guys.
I want to play two sounds, but the last one only after the first ends.
I'm using AudioServicesAddSystemSoundCompletion like that:
NSArray *data = [NSArray arrayWithObjects:target, callback, nil];
NSString *soundPath = [bundle pathForResource:sound ofType:type];
SystemSoundID soundID;
AudioServicesCreateSys...
hi,
i have uiview "DummyView" and added two other views "StartView" and "ShowView" side-by-side into the DummyView.
When the app starts the StartView shows up. On this view is a UIButton, which triggers a translation animation to move the StartView to the left (out of the screen) and the ShowView into the Screen. On the ShowView, I hav...