Tag : objective-c

appledeMacBook-Pro-3:~ apple$ pod setupSetting up CocoaPods master repo/The following is the error code/[! ] /usr/bin/git clonehttps://github.com/CocoaPods/Specs.gitmaster Cloning into ‘master’ …error: RPC failed; curl 56 SSLRead() return error -36fatal: The remote end hung up unexpectedlyfatal: early EOFfatal: index-pack failed The problem of network spee..

Read more

Gitcone, report an error. ssh: Could not resolve hostname 192.168.2.166:repositories: nodename nor servname provided, or not knownfatal: Could not read from remote repository. Please make sure you have the correct access rightsand the repository exists. 192.168.2.166 is a local area network, please make sure your computer and 192.168.2.166 are in the same local area network ..

Read more

#include <stdio.h> void f(void){ char a[8]; char b[8]; scanf(“%s”,a); scanf(“%s”,b); printf(“%s##%s##\n”,a,b); } int main(void){ f(); return 0; } Beginners of c languageAs mentioned above, I have defined two character arrays of length 8. But when I enter characters longer than 8, why can I still output normally?For example, if i enter “123123123 123123123″,pirntf comes out ..

Read more

How do you understand this line of code? static void * a = &a; See on AFN’s source code. static void *AFHTTPRequestSerializerObserverContext = &AFHTTPRequestSerializerObserverContext; In the AFURLRequestSerialization.h file, when serializing, use the.This style of code has been seen several times in other places. There is a similar problem in Zhihu, The answer isThis is a ..

Read more

TabView is a custom View. there is a data tableView in it, but the data is displayed by breaking the point and then releasing the data. -(VTabView *)TabView { if (! _TabView) { _TabView = [[VTabView alloc]init]; _TabView.alpha = 0.5; _TabView.backgroundColor = [UIColor redColor]; _TabView.tab.backgroundColor = BACKCOLOUR; [_vpaas_client.glView addSubview:self.TabView]; [self.TabView mas_makeConstraints:^(MASConstraintMaker *make) { make.top.equalTo(50); make.right.equalTo(0); ..

Read more

I have a Class A:Defines a structure typedef struct { int sockfd; on_av_frame_cb av_frame_cb; on_av_frame_cb rtp_cb; on_error_cb error_cb; uint8_t *p_buf; uint8_t *v_buf; uint8_t *a_buf; int rtp_flag; }udp_client_t; Then I call in class b: static udp_client_t client; int jldv_create_client(int src_port,int port ,const char *dst_ip){ udp_client_t *udpClient = &client; assert(udpClient ! = NULL); const char *c_ip = ..

Read more