I'm loading profile pictures from Facebook, cache them on disk and load them into cells of a UITableView.
Now I'm wondering, how I can find out when someone has changed his/her profile picture on Facebook that I have to load the new image from the web instead of using the one cached disk.
The url of the image is always the same. Is the...
I apologize ahead of time for what I'm sure is a complete newbie lapse. Running my iPhone app on iPhone simulator - no problem. But I loaded the app on an iPhone device for the first time and it appears as if the SQLite database I'm using (NSManagedObjectContext) isn't connected or didn't upload. The app installs but with no data. How do...
In my drawRect method, I am drawing a PNG image. On top of that, I want to draw a rect with a 20% alpha color, like this:
[[UIColor colorWithWhite:0.0 alpha:0.2] set];
UIRectFill(rect);
The problem is, that the alpha property seems to get ignored. No alpha is applied at all, just a black rectangle is drawn. How can I fix this? Thanks ...
Hi!
Is it possible to cut audio file with iPhone SDK? (file has .caf extension)
I just need to cut off the silence at the beginning.
(Also, maybe it's possible to write new file from the existing one with specified start and end time.)
Thanks in advance!
...
Hi all, I have been working on an iphone apps for several weeks. Now I encounter an animation problem that I can't figure out how to resolve. Mayhbe you can help. Here is the details (a little long, bear with me):
Basically the effect I want to achieve is, when user click a button, a loading view pops up, hiding the whole screen; and th...
I have this code in the main view controller and it is working just fine and as I wanted.
loadingActionSheet = [[UIActionSheet alloc] initWithTitle:@"Posting To Twitter..."
delegate:nil
cancelButtonTitle:@"Cancel"
...
Hi,
I have dowload a KissXml project.
I must add all the files to my project (excluding DDXMLTesting).
Sorry for the stupid question but i must insert all class in the classes folder (http://ixhan.com/2010/03/tutorial-of-kissxml-iphone/) or i can do another operation.
Sorry but i'm a beginner programmer for iPhone.
...
Hi
Anybody know how to programmatically generate audio podcast files with bookmarks that can be used in iTunes / iPod / iPhone / iPod touch? Specifically text bookmarks (bookmarks with titles) that the listener can skip to a specific point in time in the audio file. Also how to add the text transcription of the podcast's content.
Eve...
I'm trying to draw a custom view with a drop shadow. I'm having different results from iPhone OS 3.2. Has the coordinate system changed for CGContextSetShadowWithColor from 3.2?
Here is the code I'm using:
CGContextRef graphicContext = UIGraphicsGetCurrentContext();
CGColorSpaceRef colorspace = CGColorSpaceCreateDeviceRGB();
CGFloa...
Hello guys,
I am new to iPhone sdk and can't figure out why my application crashes.
In the .h I have:
UIImage *myimage; //so as it can be used as global
-(IBAction) save;
@property (nonatomic, retain) UIImage *myimage;
In the .m I have:
@synthesize myimage;
- (void)viewDidLoad {
self.imgPicker = [[UIImagePickerController alloc] ...
Hello all,
I have a pretty simple UITableView who's cells contain UITextFields and I need to be able to call resignFirstResponder to hide the keyboard whenever a user touches the UITableView outside of one of the cells.
I have read this question/answer but it seems like a very rudimentary way to achieve this. I have read about a way to...
how to fire button event programatically ?
...
Assuming I have extracted the CGPDFDictionaryRef from a PDF document using the iPhone SDK, how do I get the document's title from the dictionary? More generally, how can I get a list of the keywords for that dictionary? In theory I could ask the customer, but surely there must be some canonical keywords? Is there a list somewhere?
Up...
So far my program can display a database of custom annotation views. Eventually I want my program to be able to display extra information after a button on the annotation bubble is clicked. Each element in the database has a unique entry Number, so I thought it would be a good idea to add this entry number as a property of the custom ann...
My app is going from a flipside view (only one orientation) to its main view (can have any sort of orientation. When I go from flipside back to main view, the main view's orientation is not checked and changed immediately.
I need a way to trigger the built in orientation check that happens in willRotateToInterfaceOrientation so that ...
Hello,
I have a custom UITableViewCell. However, when I got in edit mode, I don't have any Delete and Move indicators appearing. The custom cell draws itself in the contentView.
In layoutSubviews, I make sure there is space on the left and one the right of the contentView so that the controls can appear (if this was the problem).
- (v...
I am having problem with inserting data to sqlite database.
char *update="INSERT OR REPLACE INTO ct_subject (id,id_parent, title, description, link, address, phone, pos_lat, pos_long, no_votes, avg_vote, photo, id_comerc, id_city, placement, type, timestamp, mail) VALUES (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?);";
sqlite3_stmt ...
I've taken a look at this question: http://stackoverflow.com/questions/962827/uiimage-shadow
But the accepted answer didn't work for me.
What I'm trying to do is take a UIImage and add a shadow to it, then return a whole new UIImage, shadow and all.
This is what I'm trying:
- (UIImage*)imageWithShadow {
CGColorSpaceRef colourSpa...
Running through an iPhone SDK book and one of the examples has me creating a table and then later adding a UISegmentedControl to the table for sorting.
I dutifully did this in IB, and it looks great:
When I run it in the simulator or my phone, it's totally squished:
The buttons work perfectly, it's just they are not sizing accordi...
Hello,
I use a fanpage which doesn't require authorization in a normal browser, but if I request my url in a UIWebView I get the Facebook login prompt.
Is this normal behaviour or can I avoid this?
...