I have an app that is going to navigate to a UISplitView (inside another view altogether) like so:
- (void) switchToMyDayView {
NSLog(@"Show My Day Screen");
if (self.myDayController.view.superview == nil) {
if (self.myDayController == nil) {
MyDayController *myController = [[MyDayController alloc] initWithN...
i want the cllocation parameter first in the app and then print it,and then want the talbe view content in the same viewcontroller file.
i am calling the startupdatinglocation in the initwithnibname and table view viewdidload but content of table view is coming first and then my value of cllocation in console.
...
Hello. I have a class that's very similar to MultipleDownload.m by leonho. Basically, in a pretty tight loop, I spawn a bunch of NSURLConnections and keep track of received data using a method similar to that used in MultipleDownload.m. There are changes in my code that was necessitated by needing to save files to the camera roll in the ...
Hi all,
I am playing video with MPMoviePlayer in my application.
How i rotate video in my iphone landscape to portrait and vice versa.
...
is this possible that anyother person run the app on the his device by taking my application.app file.
...
I needs to show messages which are available in history. I mean messages that are present in iphone.
I try from google but no any appropriate help.
Is there no any way to retrive it from iphone ?
or is there any alternative way ? Please mention that i just needs the history of messages.
...
Let me describe the situation I am trying to do:
I have a list of Items. When I go into ItemDetailView, which is a UITableView. I want to do paging here like: When I scroll down out of the table view, I want to display the next item. Like in Good Reader:
Currently, I am trying 2 approaches but both do not really work for me.
1st: I l...
Hi,
I'm new to Objective-C and I'd like to abstract my database access using a model class like this:
@interface LectureModel : NSMutableDictionary
{
}
-(NSString*)title;
-(NSDate*)begin;
...
@end
I use the dictionary methods setValue:forKey: to store attributes and return these in the getters. Now I want to read these models fro...
can you please tell me how to read command line arguements for example :
conf_load -p 1 -l 80 78 67 98
-l followed by four decimal integer value to be read via command line arguement using getopt() . Can some one help regarding this
...
I'm building a segmented control within my viewDidLoad method, like so:
NSArray *tabitems = [NSArray arrayWithObjects:@"ONE", @"TWO", nil];
UISegmentedControl *tabs = [[UISegmentedControl alloc] initWithItems:tabitems];
tabs.segmentedControlStyle = UISegmentedControlStyleBar;
tabs.frame = CGRectMake(185.0, 7.0, 130.0, 30.0);
tabs.select...
Hi !
I have a HTTP connector in my iPhone project and queries must have a parameter set from the username using the Fowler–Noll–Vo (FNV) Hash.
I have a Java implementation working at this time, this is the code :
long fnv_prime = 0x811C9DC5;
long hash = 0;
for(int i = 0; i < str.length(); i++)
{
hash *= fnv_prime;
hash ^= str...
Hi Guys,
I am not sure why the following line:
addDetails.Address = [addDetails.Address stringByReplacingOccurrencesOfRegex:@" +" withString:@" "];
causes an "Unrecognized Selector Sent to Instance" error, closing my iPhone App in my Simulator(XCode).
What's wrong with my code?
...
I am parsing a list of locations and would like to return a UIImage with a flag based on these locations.
I have a string with the location. This can be many different locations and I would like to search this string for possible matches in an NSArray, and when there's a match, it should find the appropriate filename in an NSDictionary....
Hi how can I validate email address, username, fullname and date of birth for my registration form inside an iphone application.
...
In the iPhone maps app there's a toolbar at the bottom of the map view (it contains the Search/Directions segment control and others). When moving from the map view by clicking on a callout, the toolbar slides out with the map view, leaving the next view (a table controller) with no toolbar.
I've tried to do the same thing with [self.n...
Hi folks,
I'm looking for a "did finish, or finish" thing in NSURL -> NSstring initWithContentsOfUrl
i found "URLResourceDidFinishLoading" but this seems to be depreciated
I couldn't find any but maybe I searced for the wrong thing.
Thanks in advance
Alex
...
When I run this method the two properties I have are set to (NULL) when I try and access them outside of the if statement. But they are set to 0 and NO if I check them inside the if statement.
-(id) init
{
NSLog(@"Jumping into the init method!");
if (self = [super init]) {
NSLog(@"Running the init method extras"...
Hi,
I have a custom view controller that I push onto my navigation stack as follows:
myViewController *myVC = [[myViewController alloc] init];
[myVC generate:myData];
[self.navigationController pushViewController:myVC animated:YES];
the code runs fine, but when checking for memory leaks I get a warning that myVC is never released.
ad...
i am calling the data from xml in table view. after the the first row of data in tableview, my second row is empty in tableview, and from third row data is available. but my last data for row is missing from tableview, because of the second row.
how can i fill that second row.
this is my code:
- (UITableViewCell *)tableView:(UITableView...
Hey,
here is a quick question,
i have my couple view controllers classes, and have some other classes.
i've found my self creating some methods in all of their implementation files, which are doing the same.
i would like to write some of my methods in a seperate file,
and import this file into my view controllers.
therefore, i will be ...