I can post code, though I'm not quite sure where to start. I have a UITableView with custom cells, in the middle tier of a three-level UINavigationView scheme. When I drill down to the bottom level and see details about my data, then use the top-left back button, my table view comes back scrolled all the way to the top, rather than scrol...
How can I get a UITableView to automatically wrap text which is longer than the width of the cell?
...
Hi All,
Is it possible to read a .doc (MSWord) file in ObjC ?
Or
Is there any other way to read the word file ?
Thanks
...
I am working on a view-based project. My first view is a UIView where i fetch my data. Then i add a subview to my window which is a UITableView. Now i am unable to populate my data to UITableView. Please help..
...
Hey,
This one has me stumped.
Is it possible at all to change the background color of a UIButton in Cocoa for iphone.
I've tried setting the background color but it only changes the corners. SetBackgroundColor seems to be the only method available for such things.
[random setBackgroundColor:[UIColor blueColor]];
[random.titleLabel s...
Hi, I'm trying to get to know Core Data (I'm a noob at iPhone development) and in order to do this I'm trying to get an object from the fetchedresultscontroller and NSlog it's name (a property of the object). I tried to do it like this:
NSArray *ar = [NSArray arrayWithArray:[fetchedResultsController sections]];
Task *t = [ar objectAtInd...
I'm working on some HTML5 content to be included as part of an iPad app in a Web View and it requires some custom fonts which I was attepting to implement via CSS and @font-face
As I understand it, Mobile Safari only supports SVG fonts, but my testing has shown Mobile Safari to really struggle with SVG and the performance hit is a serio...
A quick question, I am setting a delegate for UITableView and I have a question regarding setting the delegate and dataSource properties. I have noticed that the properties for delegate and dataSource are not available, I was thinking that adopting the protocols would make them available. But I am now thinking that I maybe have the supe...
Well, may be this question is silly, but I couldn't find a way (except programmatically).
I built a project (for iPhone OS 3.0) which uses Core Data.
The xcdatamodel file shows the schema description, but I want to see the data in tabular form (like the management studio for mssql server or phpmyadmin for mysql).
Is there any way (excep...
An UIPicker shows up when I select a row in a table, so I can choose some things I want to be displayed on the same row.
How can I update the table once I finished with the uipicker? I used reloadData right after the call to the picker, but the code is executed before I do "Done" on the picker.
Some idea?
Thank u
...
I am no graphics expert but I somehow managed to make some good looking custom grouped UITableViewCells by setting the background view to a backgroundView with some CG code. In all SDK's up to 3.1.3 (maybe 3.2... I haven't tested on the iPad) this was working great, but I think a more recent SDK has introduced a change in the way graphic...
Is it possible to change the coordinate system in a UIView so that (0,0) will be the top right hand corner?
...
I subclassed NSObject:
#import <Foundation/Foundation.h>
@interface STObject : NSObject {
NSString *message_type;
NSString *twitter_in_reply_to_screen_name;
}
@property(nonatomic, copy) NSString *message_type;
@property(nonatomic, copy) NSString *twitter_in_reply_to_screen_name;
@end
My implementation looks like:
#import ...
I am looking for a way to access user settings (I assume, NSUserDefaults?) through a button action. Let me back up and explain. What I have right now are 2 TextFields a label and a button. The user will type in measurements in the 2 TextFields. When they hit the button the label displays the volume of the measured object in Gallons. That...
I'm getting this every time I attempt to debug my app in the simulator:
[Session started at 2010-05-11 16:16:52 -0500.]
GNU gdb 6.3.50-20050815 (Apple version gdb-1467) (Wed Apr 21 06:57:21 UTC 2010)
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to chan...
Does anyone know of a way to add additional attribute types to the @property keyword without modifying the compiler? Or can anyone think of another way to genericize getter/setter creation?
Basically, I have a lot of cases in a recent project where it's handy for objects to lazily instantiate their array properties. This is because we...
I try to show a image in my iphone app but it doesn't show. I connect in IB and I check to show a local image, it workd good. I also check the url from image and it is ok. I use the next code:
NSURL *imageURL = [NSURL URLWithString: aVideo.urlThumbnail];
NSData *imageData = [NSData dataWithContentsOfURL:imageURL];
UIImage *image = [UII...
I try to play a video on the server with this code. I have a error.
//Play the video from server
- (IBAction)playVideo:(id)sender;
{
NNSURL *url = [[NSURL alloc]initWithString: aVideo.urlVideo];
NSLog(@"URLVIDEO %@", url);
MPMoviePlayerController *VideoPlayer = [[MPMoviePlayerController alloc]initWithContentURL: url];
[...
I'm implementing custom view which will provide image editing functionality (like filling with color, hand drawing etc). View initialized with image (pgn, jpg whatever), and user can modify it.
I'm not sure how it will be good to implement.
At the moment every drawRect I draw UIImage *mainImage.
During events like touchesEnded:withEve...
Say that there are no WIFI networks currently available and my network-enabled app is connected over 3G. How can I detect if a user has roamed into a WIFI network? I would also like to detect the case when the user is connected over WIFI and suddenly received 3G signal.
In other words, I would like to be asynchronously notified of netw...