I have a core data model with blog groups, blogs, and posts. A blog group has a to-many relationship to blogs, and each blog has a to-many relationship to posts. A post has an attribute "hasBeenRead." Both the blog and the blog group have a attributes "numberUnreadPosts."
I'd like to know the best practice for propagating the numbe...
Hello -
I am trying to make a very basic inventory application with the option
to include a photo of items in the inventory. I have everything
working except the photo part...
I have looked at this
http://phonegap.pbworks.com/iPhone%3A-Camera-API
and I can get the camera to work, but do not seem to be able to add
the image to the da...
I've got an iPhone app that loads a bunch of TableViews. The first time a user loads the app it downloads .json from a remote server, parses that into a NSDictionary and saves it locally on the device as a .plist.
Unfortunately, I can't figure out how to do a reloadTable on the MainWindow.xib after the data loads, so it sits blank until...
I'm trying to find ways to reduce load times for a large application.
Here is some background:
The app uses a lot of the iphone frameworks (openGL,mapping,location,quartz,audio) as well a few libraries from other sources (JSON, ARKit, Flurry, Facebook connect)
The code + nib size is around 3.5MB with about 150 source files.
The app compr...
If I have an NSTimer that starts in viewdidload, where is the proper place to invalidate it when leaving that view? Is it also necessary to release it as well?
...
What is wrong with this code?
{
NSString *s = [urls objectAtIndex:selectedPage];
NSLog(@"video = %@\n", s); // JT 10.07.31
theMoviePlayer = [[MPMoviePlayerViewController alloc] initWithContentURL:[NSURL fileURLWithPath: s]];
//? theMoviePlayer.scalingMode=MPMovieScalingModeAspectFill;
[self.view addSubview:theMoviePl...
In iPhone SDK 4.0 UIApplication has a new method, setKeepAliveTimeout that requires a second parameter of type 'void(^)(void)'.
-(BOOL)setKeepAliveTimeout:(NSTimeInterval)timeout handler:(void(^)(void))keepAliveHandler
What exactly does the syntax of the second param mean, and how would I declare a function/handler that I can pass into...
I'm trying to make a control that seems a customization of the progress view.
This is what I should want to make.
It is a progress bar that would work as a countdown timer. Start at 30 seconds, and the bar is green. As the time progress the bar is shorten.
When the time is 20 seconds the bar turns to yellow. At 10 seconds, the bar is re...
hi i am new to iphone.what i am doing is displaying the images grid view. what i need is i have to change my simulator to landscape mode from portrait mode. while rotating the simulator the images are not rotated. how can i rotate images along with simulator.pls post some code for all mode
...
Dear all,
My app allow user reorder rows in a view, but I want to reloadData after moving is done to change some thing (add some text to the first row).
I tried to reloadData in moveRowAtIndexPath method, but it makes the app hang because this method is called many time (according number of rows need to be moved) and the table view is...
I seem to be having a 1.19 KB leak somewhere in the following code. opening up the call tree in instruments, I have narrowed down the leaks to the following:
61.8% of the leaks are coming from +[NSString stringWithUTF8String:]
38.1% of the leaks are coming from +[NSNumber numberWithDouble:]
-(void) readMinesFromDatabase
{
NSLog(@...
I try the code to avoid the sleep mode interruption it's working but now I have the problem with interruption when call or sms is coming on iphone the song is stop ok at that time.Where the song is stop i want to start the song automatically when the call is end.
- (void) audioPlayerBeginInterruption: (AVAudioPlayer *) player {
if (pl...
Hi All,
I want to play a video in iphone in potrait mode .I have written the following code
-(void)buttonEvent
{
NSBundle *bundle = [NSBundle mainBundle];
NSString *moviePath = [bundle pathForResource:@"Movie" ofType:@"m4v"];
NSURL *URL = [NSURL fileURLWithPath:moviePath];
self.moviePlayer = [[MPMoviePlayerController alloc] init...
Hi can anybody help me with video capture code for iPhone4.
i am using the following code but it does not work it invokes the still camera not video:
UIImagePickerController *imagePicker = [[UIImagePickerController alloc] init]; imagePicker.sourceType = UIImagePickerControllerSourceTypeCamera; NSArray *arraySourceTypes =[UIImagePickerC...
From this url:
http://ws.geonames.org/findNearbyPostalCodes?lat=19.0176560&lng=72.8561780
I want is city name that is mumbai can somebody help me?
...
I am working on custom tableviewcell. where I have written customcell(for 3 labels) in a separate class using IB and linked labels with outlets. than I am using this customcell in RootviewController class . I have used customcell in the method mentioned below.. but finally not getting any output in the table view...
- (UITableViewCell...
I'm working on an iPhone app which involves typing stuff into a UITextView, which adds content to a UITableView. The problem is, I need to be able to close the keyboard when the user's done with it, and the only area that is really visible other than the keyboard and UITextView at this point is the UITableView. I'm having trouble impleme...
How to prepare app to be able for upgrading to the latest version available on AppStore
...
Hi All...
I want to send post data from Iphone.
I have to send a dictionary(K-V pairs) with 8 k-v pairs.
What is the best way to post all these 8 K-V pairs from Iphone.
I want that i should pass only Id(one of K-V pair)in the URL & remaining K-V pairs should be sent via post.
if there is something like that??
...
The HTML page has two section the first section takes the top half and the second section takes the second half. Each section is a <ul> with 25 <li>s.
I use event.preventDefault(); in the body to prevent the HTML page from scrolling. but can I still make those two section scrollable? and display them as described above?
...