我想通过A级到B级的阵列,但A电话是B。
I have created a new iPhone application.I have two mach machines. I have created the certificate for running application in iPhone in one mac. Can I use the other mac for running the application in ...
我想通过A级到B级的阵列,但A电话是B。
What you want are simple object members to set. The best way to achive this is to use properties: http://developer.apple.com/library/ios/#referencelibrary/GettingStarted/Learning_Objective-C_A_Primer/_index.html#//apple_ref/doc/uid/TP40007594
页: 1 B.h:
@property(nonatomic,retain) NSArray * theArray_B;
页: 1
@synthesize theArray_B;
页: 1
myB_Instance.theArray_B = theArrayToPass;
在这种例子中,A和B与同一记忆中的阿雷-奥目标有着共同点。 此外,B拥有这个Array(A也是这样),因为它有保留。
与此类似:
A类:
- (void)someMethodInClassA {
NSArray *arrayData = // ... stuff
ClassB *classB = // ... stuff
[classB aMethod:arrayData];
}
B类:
- (void)aMethod:(NSArray *)array {
// do something with the array
}
页: 1 http://howtomakeiphoneapps.com/objective-c-tutorial/"rel=“nofollow”http://howtomakeiphoneapps.com/objective-c-tutorial/。
使用。
a. 编组,使其财产归为一体。 然后推向下观点,然后将从航站的 pick子用于排入阵列。 参看这一点。
FirstView *obj=(FirstView *)[self.navigationController.viewControllers objectAtIndex: [self.navigationController.viewControllers count]-2];
//obj.array is the array which you want to use.
I have created a new iPhone application.I have two mach machines. I have created the certificate for running application in iPhone in one mac. Can I use the other mac for running the application in ...
HI, In our application i am using corelocationframework when opening application a alert for allow and dont allow.when clicking on the allow for current location we will show current location.When ...
Created a View based Project and added a contact to the AddressBook using ABAddressBookRef,ABRecordRef now i wanted to display the added contact ABPersonViewController is the method but how to use in ...
我不禁要问,那里是否有任何实例表明从Peit向服务器发送音响。 I m不关心电话或SIP风格的解决办法,只是一个简单的袖珍流程......
我希望我与四舍五入的累进角进行网上讨论。
我正试图把图像放在搜索条左边。 但是,问题始于这里,搜索条线不能重新布署。
We have a restaurant table that has lat-long data for each row. We need to write a query that performs a search to find all restaurants within the provided radius e.g. 1 mile, 5 miles etc. We have ...
I like to write bash shell scripts on my iPhone, put them in an app folder with an icon, plist, etc., so they execute like apps by tapping their icon on SpringBoard. This is not interactive like ...